Skip to content
Commit d0f1d5ae authored by Evgeny Novikov's avatar Evgeny Novikov Committed by Jiri Kosina
Browse files

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: default avatarEvgeny Novikov <novikov@ispras.ru>
Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
parent df04fbe8
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment