USB: garmin_gps: fix memory leak on disconnect
authorJohan Hovold <jhovold@gmail.com>
Tue, 19 Mar 2013 08:21:07 +0000 (09:21 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 28 Mar 2013 19:12:27 +0000 (12:12 -0700)
commit00de47e3ba24ddad37496c47aae5753862024900
tree82606b7bc4bd33e65f41726c9247ec165d9dd6a0
parentbc914c3b5ebcf158419c4901ec54ffbd7677d5a0
USB: garmin_gps: fix memory leak on disconnect

commit 618aa1068df29c37a58045fe940f9106664153fd upstream.

Remove bogus disconnect test introduced by 95bef012e ("USB: more serial
drivers writing after disconnect") which prevented queued data from
being freed on disconnect.

The possible IO it was supposed to prevent is long gone.

Signed-off-by: Johan Hovold <jhovold@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/serial/garmin_gps.c