Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 168956
b: refs/heads/master
c: dcfcb25
h: refs/heads/master
v: v3
  • Loading branch information
Antti Kaijanmäki authored and David S. Miller committed Nov 23, 2009
1 parent ff63bd4 commit c7e3b59
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 9ce673d5e919966efc1ef5adf20248e6ecc62724
refs/heads/master: dcfcb256cc23c4436691b0fe677275306699d6a1
4 changes: 3 additions & 1 deletion trunk/drivers/net/usb/hso.c
Original file line number Diff line number Diff line change
Expand Up @@ -1363,7 +1363,7 @@ static void hso_serial_close(struct tty_struct *tty, struct file *filp)
/* reset the rts and dtr */
/* do the actual close */
serial->open_count--;
kref_put(&serial->parent->ref, hso_serial_ref_free);

if (serial->open_count <= 0) {
serial->open_count = 0;
spin_lock_irq(&serial->serial_lock);
Expand All @@ -1383,6 +1383,8 @@ static void hso_serial_close(struct tty_struct *tty, struct file *filp)
usb_autopm_put_interface(serial->parent->interface);

mutex_unlock(&serial->parent->mutex);

kref_put(&serial->parent->ref, hso_serial_ref_free);
}

/* close the requested serial port */
Expand Down

0 comments on commit c7e3b59

Please sign in to comment.