mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 02:32:09 -04:00
usb: misc: legousbtower: Fix memory leak
get_version_reply is not freed if function returns with success.
Fixes: 942a48730f ("usb: misc: legousbtower: Fix buffers on stack")
Reported-by: Heikki Krogerus <[email protected]>
Signed-off-by: Maksim Salau <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
This commit is contained in:
parent
2f964780c0
commit
0bd193d62b
1 changed files with 1 additions and 0 deletions
|
|
@ -926,6 +926,7 @@ static int tower_probe (struct usb_interface *interface, const struct usb_device
|
|||
USB_MAJOR, dev->minor);
|
||||
|
||||
exit:
|
||||
kfree(get_version_reply);
|
||||
return retval;
|
||||
|
||||
error:
|
||||
|
|
|
|||
Loading…
Reference in a new issue