diff options
author | Qasim Ijaz <qasdev00@gmail.com> | 2025-03-27 23:11:46 +0000 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-05-22 14:29:38 +0200 |
commit | a6999953707a9c63cbddbef8eb74bf20cde18f67 (patch) | |
tree | 4198d8eae36a1efbf23b88efcee9808ae36a1eb2 /net/lapb/lapb_timer.c | |
parent | 336edd6b0f5b7fbffc3e065285610624f59e88df (diff) |
HID: thrustmaster: fix memory leak in thrustmaster_interrupts()
[ Upstream commit 09d546303b370113323bfff456c4e8cff8756005 ]
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 <qasdev00@gmail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'net/lapb/lapb_timer.c')
0 files changed, 0 insertions, 0 deletions