diff options
-rw-r--r-- | drivers/usb/serial/usb-serial.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/usb/serial/usb-serial.c b/drivers/usb/serial/usb-serial.c index cbca3402d6cd..92c213fa9317 100644 --- a/drivers/usb/serial/usb-serial.c +++ b/drivers/usb/serial/usb-serial.c | |||
@@ -237,6 +237,8 @@ bailout_module_put: | |||
237 | module_put(serial->type->driver.owner); | 237 | module_put(serial->type->driver.owner); |
238 | bailout_mutex_unlock: | 238 | bailout_mutex_unlock: |
239 | port->open_count = 0; | 239 | port->open_count = 0; |
240 | tty->driver_data = NULL; | ||
241 | port->tty = NULL; | ||
240 | mutex_unlock(&port->mutex); | 242 | mutex_unlock(&port->mutex); |
241 | bailout_kref_put: | 243 | bailout_kref_put: |
242 | usb_serial_put(serial); | 244 | usb_serial_put(serial); |