HID: thrustmaster: Fix memory leak in thrustmaster_interrupts()
authorEvgeny Novikov <novikov@ispras.ru>
Fri, 30 Jul 2021 16:53:33 +0000 (19:53 +0300)
committerJiri Kosina <jkosina@suse.cz>
Fri, 20 Aug 2021 12:24:57 +0000 (14:24 +0200)
commitc3800eed22d21c66912b4461a403b4448ed88d95
treeee713d2471dcfd77e322033de5e73dd4705aa407
parentdf3a97bdbc252d3421f1c5d6d713ad6e4f36a469
HID: thrustmaster: Fix memory leak in thrustmaster_interrupts()

thrustmaster_interrupts() does not free memory for send_buf when
usb_interrupt_msg() fails. This is fixed by the given patch.

Found by Linux Driver Verification project (linuxtesting.org).

Signed-off-by: Evgeny Novikov <novikov@ispras.ru>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/hid-thrustmaster.c