aboutsummaryrefslogtreecommitdiffstats
path: root/net/tipc/node.c
diff options
context:
space:
mode:
authorPatrick Palka <[email protected]>2014-03-12 22:40:51 +0000
committerArnaldo Carvalho de Melo <[email protected]>2014-03-14 16:45:54 +0000
commit6eeefccdcfc2cc9697562e740bfe6c35fddd4e1c (patch)
tree8485c870071abd4d7600a5441ed3539beeebd9ec /net/tipc/node.c
parentperf bench numa: Make no args mean 'run all tests' (diff)
downloadkernel-6eeefccdcfc2cc9697562e740bfe6c35fddd4e1c.tar.gz
kernel-6eeefccdcfc2cc9697562e740bfe6c35fddd4e1c.zip
perf bench: Fix NULL pointer dereference in "perf bench all"
The for_each_bench() macro must check that the "benchmarks" field of a collection is not NULL before dereferencing it because the "all" collection in particular has a NULL "benchmarks" field (signifying that it has no benchmarks to iterate over). This fixes this NULL pointer dereference when running "perf bench all": [root@ssdandy ~]# perf bench all <SNIP> # Running mem/memset benchmark... # Copying 1MB Bytes ... 2.453675 GB/Sec 12.056327 GB/Sec (with prefault) Segmentation fault (core dumped) [root@ssdandy ~]# Signed-off-by: Patrick Palka <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: Paul Mackerras <[email protected]> Cc: Peter Zijlstra <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'net/tipc/node.c')
0 files changed, 0 insertions, 0 deletions