]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
USB: serial: garmin_gps: fix memory leak on failed URB submit
authorJohan Hovold <johan@kernel.org>
Tue, 3 Jan 2017 15:39:41 +0000 (16:39 +0100)
committerJohan Hovold <johan@kernel.org>
Wed, 4 Jan 2017 09:37:15 +0000 (10:37 +0100)
commitc4ac4496e835b78a45dfbf74f6173932217e4116
treeb7f2f0e6c86dd3c39f095f11c36d8f503cdbef6f
parent3dca01114dcecb1cf324534cd8d75fd1306a516b
USB: serial: garmin_gps: fix memory leak on failed URB submit

Make sure to free the URB transfer buffer in case submission fails (e.g.
due to a disconnect).

Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Johan Hovold <johan@kernel.org>
drivers/usb/serial/garmin_gps.c