]> git.baikalelectronics.ru Git - kernel.git/commit
perf session: Fix crash with invalid CPU list
authorDavid Ahern <dsahern@gmail.com>
Sun, 13 Nov 2011 17:45:27 +0000 (10:45 -0700)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 16 Nov 2011 12:02:26 +0000 (10:02 -0200)
commit18babf2b8453bd47cda63ee6fe3ff50be38dc481
treed6403822660bed73283d781ca848fca2d6535ff6
parentebe15929fb9f9ab59a9041266787d1a13526374e
perf session: Fix crash with invalid CPU list

commit 46fed65 added the option to specify a range of CPUs of interest,
but does not catch an invalid CPU list:

$ perf script -c foo
Segmentation fault (core dumped)

Cc: Anton Blanchard <anton@samba.org>
Link: http://lkml.kernel.org/r/1321206327-5881-1-git-send-email-dsahern@gmail.com
Signed-off-by: David Ahern <dsahern@gmail.com>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/session.c