aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/serial/kobil_sct.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/usb/serial/kobil_sct.c')
-rw-r--r--drivers/usb/serial/kobil_sct.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/usb/serial/kobil_sct.c b/drivers/usb/serial/kobil_sct.c
index c113a2a0e10c..bd5bd8589e04 100644
--- a/drivers/usb/serial/kobil_sct.c
+++ b/drivers/usb/serial/kobil_sct.c
@@ -345,7 +345,8 @@ static void kobil_close(struct usb_serial_port *port)
345 345
346 /* FIXME: Add rts/dtr methods */ 346 /* FIXME: Add rts/dtr methods */
347 if (port->write_urb) { 347 if (port->write_urb) {
348 usb_kill_urb(port->write_urb); 348 usb_poison_urb(port->write_urb);
349 kfree(port->write_urb->transfer_buffer);
349 usb_free_urb(port->write_urb); 350 usb_free_urb(port->write_urb);
350 port->write_urb = NULL; 351 port->write_urb = NULL;
351 } 352 }