aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/event_analyzing_sample.py
diff options
context:
space:
mode:
authorPeter Zijlstra <[email protected]>2019-09-03 07:53:52 +0000
committerIngo Molnar <[email protected]>2019-09-05 11:03:04 +0000
commitbc04a049f058a472695aa22905d57e2b1f4c77d9 (patch)
treed743d5d2a6cf490a3d7ff824e925fdb02ff0987e /tools/perf/scripts/python/event_analyzing_sample.py
parentx86/mm: Remove the unused set_memory_wt() function (diff)
downloadkernel-bc04a049f058a472695aa22905d57e2b1f4c77d9.tar.gz
kernel-bc04a049f058a472695aa22905d57e2b1f4c77d9.zip
x86/mm: Fix cpumask_of_node() error condition
When CONFIG_DEBUG_PER_CPU_MAPS=y we validate that the @node argument of cpumask_of_node() is a valid node_id. It however forgets to check for negative numbers. Fix this by explicitly casting to unsigned int. (unsigned)node >= nr_node_ids verifies: 0 <= node < nr_node_ids Also ammend the error message to match the condition. Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Thomas Gleixner <[email protected]> Cc: Borislav Petkov <[email protected]> Cc: Yunsheng Lin <[email protected]> Link: https://lkml.kernel.org/r/[email protected] Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions