diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/usb/serial/usb-serial.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/serial/usb-serial.c b/drivers/usb/serial/usb-serial.c index 071f86a59c08..d9dceb4f57b9 100644 --- a/drivers/usb/serial/usb-serial.c +++ b/drivers/usb/serial/usb-serial.c | |||
@@ -225,9 +225,9 @@ static int serial_open (struct tty_struct *tty, struct file * filp) | |||
225 | bailout_module_put: | 225 | bailout_module_put: |
226 | module_put(serial->type->driver.owner); | 226 | module_put(serial->type->driver.owner); |
227 | bailout_kref_put: | 227 | bailout_kref_put: |
228 | kref_put(&serial->kref, destroy_serial); | ||
229 | port->open_count = 0; | 228 | port->open_count = 0; |
230 | mutex_unlock(&port->mutex); | 229 | mutex_unlock(&port->mutex); |
230 | kref_put(&serial->kref, destroy_serial); | ||
231 | return retval; | 231 | return retval; |
232 | } | 232 | } |
233 | 233 | ||