]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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:18:14 +0000 (12:18 -0700)
commit7bceb75e5705f904ced6a14ea96a07dfb5bc9492
tree2db07c65a49c2b24d4792384773d75a8041c6185
parent7f2cb127ef2569a45fbe14fce3d14f9e84796cc9
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