diff options
-rw-r--r-- | drivers/usb/serial/mos7840.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/usb/serial/mos7840.c b/drivers/usb/serial/mos7840.c index 809fb329eca5..107ff9e3ddad 100644 --- a/drivers/usb/serial/mos7840.c +++ b/drivers/usb/serial/mos7840.c | |||
@@ -1252,8 +1252,7 @@ static void mos7840_close(struct usb_serial_port *port) | |||
1252 | 1252 | ||
1253 | if (mos7840_port->write_urb) { | 1253 | if (mos7840_port->write_urb) { |
1254 | /* if this urb had a transfer buffer already (old tx) free it */ | 1254 | /* if this urb had a transfer buffer already (old tx) free it */ |
1255 | if (mos7840_port->write_urb->transfer_buffer != NULL) | 1255 | kfree(mos7840_port->write_urb->transfer_buffer); |
1256 | kfree(mos7840_port->write_urb->transfer_buffer); | ||
1257 | usb_free_urb(mos7840_port->write_urb); | 1256 | usb_free_urb(mos7840_port->write_urb); |
1258 | } | 1257 | } |
1259 | 1258 | ||