diff options
author | Yi Wang <[email protected]> | 2018-07-23 12:19:07 +0800 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2018-07-25 11:25:07 +0200 |
commit | 6cd0c583b04b2bd9415e07b51b63ab799949dd66 (patch) | |
tree | 43211660107995e3c86f559f01d8022e5b753e24 /tools/perf/scripts/python/call-graph-from-sql.py | |
parent | d72e90f33aa4709ebecc5005562f52335e106a60 (diff) |
sched/topology: Check variable group before dereferencing it
The 'group' variable in sched_domain_debug_one() is not checked
when firstly used in cpumask_test_cpu(cpu, sched_group_span(group)),
but it might be NULL (it is checked later in the following while loop)
and may cause NULL pointer dereference.
We need to check it before using to avoid NULL dereference.
Signed-off-by: Yi Wang <[email protected]>
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Reviewed-by: Jiang Biao <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: [email protected]
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-sql.py')
0 files changed, 0 insertions, 0 deletions