git.openpandora.org
/
pandora-kernel.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
USB: serial: garmin_gps: fix memory leak on failed URB submit
[pandora-kernel.git]
/
drivers
/
usb
/
serial
/
garmin_gps.c
diff --git
a/drivers/usb/serial/garmin_gps.c
b/drivers/usb/serial/garmin_gps.c
index
e664bac
..
0c1c8ca
100644
(file)
--- a/
drivers/usb/serial/garmin_gps.c
+++ b/
drivers/usb/serial/garmin_gps.c
@@
-1075,6
+1075,7
@@
static int garmin_write_bulk(struct usb_serial_port *port,
"%s - usb_submit_urb(write bulk) failed with status = %d\n",
__func__, status);
count = status;
+ kfree(buffer);
}
/* we are done with this urb, so let the host driver