]> git.baikalelectronics.ru Git - kernel.git/commit
USB: legousbtower: fix memleak on disconnect
authorJohan Hovold <johan@kernel.org>
Thu, 10 Oct 2019 12:58:35 +0000 (14:58 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 15 Oct 2019 18:07:43 +0000 (20:07 +0200)
commit851088de0505ea7a1ac7577838ca28ed90f4fbcc
tree6d3a61a0a6e5c3c017d8d1c5e406ce34bd428bc9
parent6dfac67b8e4eb0eb640c3f47b09a2da89f397a61
USB: legousbtower: fix memleak on disconnect

If disconnect() races with release() after a process has been
interrupted, release() could end up returning early and the driver would
fail to free its driver data.

Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Johan Hovold <johan@kernel.org>
Link: https://lore.kernel.org/r/20191010125835.27031-3-johan@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/misc/legousbtower.c