diff options
| author | Qasim Ijaz <[email protected]> | 2025-03-27 23:11:46 +0000 |
|---|---|---|
| committer | Jiri Kosina <[email protected]> | 2025-04-24 09:48:13 +0000 |
| commit | 09d546303b370113323bfff456c4e8cff8756005 (patch) | |
| tree | 69b0ab1af0017b3fea577020ec01258f9efabbca /tools/perf/scripts/python/mem-phys-addr.py | |
| parent | HID: hid-appletb-kbd: Fix wrong date and kernel version in sysfs interface docs (diff) | |
| download | kernel-09d546303b370113323bfff456c4e8cff8756005.tar.gz kernel-09d546303b370113323bfff456c4e8cff8756005.zip | |
HID: thrustmaster: fix memory leak in thrustmaster_interrupts()
In thrustmaster_interrupts(), the allocated send_buf is not
freed if the usb_check_int_endpoints() check fails, leading
to a memory leak.
Fix this by ensuring send_buf is freed before returning in
the error path.
Fixes: 50420d7c79c3 ("HID: hid-thrustmaster: Fix warning in thrustmaster_probe by adding endpoint check")
Signed-off-by: Qasim Ijaz <[email protected]>
Signed-off-by: Jiri Kosina <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/mem-phys-addr.py')
0 files changed, 0 insertions, 0 deletions
