aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/libxed.py
diff options
context:
space:
mode:
authorZichen Xie <[email protected]>2024-11-14 23:43:36 -0600
committerShuah Khan <[email protected]>2024-11-19 15:17:51 -0700
commit435c20eed572a95709b1536ff78832836b2f91b1 (patch)
tree968a1bb24e0f22e21e59b07529fa55824eb381a6 /tools/perf/scripts/python/libxed.py
parentaadf9cb1f0864bff45e3a3e5590af97097dd7317 (diff)
kunit: Fix potential null dereference in kunit_device_driver_test()
kunit_kzalloc() may return a NULL pointer, dereferencing it without NULL check may lead to NULL dereference. Add a NULL check for test_state. Link: https://lore.kernel.org/r/[email protected] Fixes: d03c720e03bd ("kunit: Add APIs for managing devices") Signed-off-by: Zichen Xie <[email protected]> Cc: [email protected] Reviewed-by: David Gow <[email protected]> Signed-off-by: Shuah Khan <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/libxed.py')
0 files changed, 0 insertions, 0 deletions