|
@@ -489,6 +489,8 @@ void usb_serial_generic_write_bulk_callback(struct urb *urb)
|
|
dbg("%s - port %d", __func__, port->number);
|
|
dbg("%s - port %d", __func__, port->number);
|
|
|
|
|
|
if (port->serial->type->max_in_flight_urbs) {
|
|
if (port->serial->type->max_in_flight_urbs) {
|
|
|
|
+ kfree(urb->transfer_buffer);
|
|
|
|
+
|
|
spin_lock_irqsave(&port->lock, flags);
|
|
spin_lock_irqsave(&port->lock, flags);
|
|
--port->urbs_in_flight;
|
|
--port->urbs_in_flight;
|
|
port->tx_bytes_flight -= urb->transfer_buffer_length;
|
|
port->tx_bytes_flight -= urb->transfer_buffer_length;
|