summaryrefslogtreecommitdiffstats
path: root/kernel/drivers/usb/serial/garmin_gps.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/drivers/usb/serial/garmin_gps.c')
-rw-r--r--kernel/drivers/usb/serial/garmin_gps.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/drivers/usb/serial/garmin_gps.c b/kernel/drivers/usb/serial/garmin_gps.c
index db591d19d..37d0e8cc7 100644
--- a/kernel/drivers/usb/serial/garmin_gps.c
+++ b/kernel/drivers/usb/serial/garmin_gps.c
@@ -1044,6 +1044,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