]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit596511fb798169986554fb9e74f95d012e9dbcc9
treeb0dbf8e4281c5ade54e073dc9d0042a209c0282d
parentb2e578b0519763365ba1264f08ccd5e22065f721
usb: misc: legousbtower: Fix memory leak

get_version_reply is not freed if function returns with success.

Fixes: 89d47003b6aa ("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