aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/syscall-counts-by-pid.py
diff options
context:
space:
mode:
authorQasim Ijaz <[email protected]>2025-03-29 00:20:03 +0000
committerJiri Kosina <[email protected]>2025-04-24 09:53:35 +0000
commite1ca5f39c2e37a3a8cdae005b94c3fc385be4240 (patch)
tree94b470622d1daf25b2daed08b9a00a47c857695d /tools/perf/scripts/python/syscall-counts-by-pid.py
parentHID: thrustmaster: fix memory leak in thrustmaster_interrupts() (diff)
downloadkernel-e1ca5f39c2e37a3a8cdae005b94c3fc385be4240.tar.gz
kernel-e1ca5f39c2e37a3a8cdae005b94c3fc385be4240.zip
HID: wacom: handle kzalloc() allocation failure in wacom_wac_queue_flush()
During wacom_wac_queue_flush() the code calls kzalloc() to allocate a zero initialised buffer which it uses as a storage buffer to get data from the fifo via kfifo_out(). However it does not check kzalloc() for allocation failure which returns NULL and could potentially lead to a NULL deref. Fix this by checking for kzalloc() failure and skipping the current entry if allocation failure occurs. Fixes: 5e013ad20689 ("HID: wacom: Remove static WACOM_PKGLEN_MAX limit") Signed-off-by: Qasim Ijaz <[email protected]> Reviewed-by: Jason Gerecke <[email protected]> Signed-off-by: Jiri Kosina <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts-by-pid.py')
0 files changed, 0 insertions, 0 deletions