mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 19:30:30 +09:00
usb: misc: legousbtower: Fix memory leak
commit0bd193d62bupstream. get_version_reply is not freed if function returns with success. Fixes:942a48730f("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:
committed by
Greg Kroah-Hartman
parent
8a7f9dfbd4
commit
b572de5991
@@ -953,6 +953,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:
|
||||
|
||||
Reference in New Issue
Block a user