USB: serial: pl2303: fix NULL-deref at open
[pandora-kernel.git] / drivers / usb / serial / garmin_gps.c
index e664bac..0c1c8ca 100644 (file)
@@ -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