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, 21 Mar 2013 22:59:02 +0000 (15:59 -0700)
commit618aa1068df29c37a58045fe940f9106664153fd
tree762694909e17ab4dfaec255f8952c81f838a5675
parentcb25505fc604292c70fc02143fc102f54c8595f0
USB: garmin_gps: fix memory leak on disconnect

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.

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