mirror of
https://github.com/rd-stuffs/msm-4.14.git
synced 2025-02-20 11:45:48 +08:00
usb: misc: legousbtower: Fix memory leak
get_version_reply is not freed if function returns with success. Fixes: 942a48730faf ("usb: misc: legousbtower: Fix buffers on stack") Reported-by: Heikki Krogerus <heikki.krogerus@linux.intel.com> Signed-off-by: Maksim Salau <maksim.salau@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
2f964780c0
commit
0bd193d62b
@ -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…
x
Reference in New Issue
Block a user