usb: misc: legousbtower: Fix memory leak
authorMaksim Salau <maksim.salau@gmail.com>
Sat, 13 May 2017 20:49:26 +0000 (23:49 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 17 May 2017 09:27:41 +0000 (11:27 +0200)
commit0bd193d62b4270a2a7a09da43ad1034c7ca5b3d3
treeb0dbf8e4281c5ade54e073dc9d0042a209c0282d
parent2f964780c03b73de269b08d12aff96a9618d13f3
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>
drivers/usb/misc/legousbtower.c