From: Johan Hovold Date: Tue, 3 Jan 2017 15:39:41 +0000 (+0100) Subject: USB: serial: garmin_gps: fix memory leak on failed URB submit X-Git-Tag: v3.2.87~136 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=21468d424837e08165315dbf6788ce019a6f0034;p=pandora-kernel.git USB: serial: garmin_gps: fix memory leak on failed URB submit commit c4ac4496e835b78a45dfbf74f6173932217e4116 upstream. 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") Signed-off-by: Johan Hovold Signed-off-by: Ben Hutchings --- Reading git-diff-tree failed