HID: thrustmaster: Fix memory leaks in probe
When thrustmaster_probe() handles errors of usb_submit_urb() it does not free allocated resources and fails. The patch fixes that. Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by:Evgeny Novikov <novikov@ispras.ru> Signed-off-by:
Jiri Kosina <jkosina@suse.cz>
Loading
Please sign in to comment