commit | fe41cbb164a0dc55f3914a0e4cabe8240410157c | [log] [tgz] |
---|---|---|
author | Alan Cox <alan@redhat.com> | Thu Jan 15 13:31:15 2009 +0000 |
committer | Linus Torvalds <torvalds@linux-foundation.org> | Thu Jan 15 12:48:36 2009 -0800 |
tree | ffbb292ec7ccac89dcc5751e438d4700b91e9c72 | |
parent | a9fec7102f01f6464b19e13ffd9d8c48663379ad [diff] [blame] |
tty: Fix a kref leak in the HSO driver on re-open Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
diff --git a/drivers/net/usb/hso.c b/drivers/net/usb/hso.c index c4918b8..9df04dd 100644 --- a/drivers/net/usb/hso.c +++ b/drivers/net/usb/hso.c
@@ -1297,6 +1297,7 @@ /* setup */ spin_lock_irq(&serial->serial_lock); tty->driver_data = serial; + tty_kref_put(serial->tty); serial->tty = tty_kref_get(tty); spin_unlock_irq(&serial->serial_lock);