diff options
author | Alan Cox <alan@redhat.com> | 2009-01-15 13:31:15 +0000 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2009-01-15 12:48:36 -0800 |
commit | fe41cbb164a0dc55f3914a0e4cabe8240410157c (patch) | |
tree | ffbb292ec7ccac89dcc5751e438d4700b91e9c72 /drivers/net/usb | |
parent | a9fec7102f01f6464b19e13ffd9d8c48663379ad (diff) | |
download | linux-fe41cbb164a0dc55f3914a0e4cabe8240410157c.tar.gz linux-fe41cbb164a0dc55f3914a0e4cabe8240410157c.tar.bz2 linux-fe41cbb164a0dc55f3914a0e4cabe8240410157c.zip |
tty: Fix a kref leak in the HSO driver on re-open
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/net/usb')
-rw-r--r-- | drivers/net/usb/hso.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/usb/hso.c b/drivers/net/usb/hso.c index c4918b86ed19..9df04dd1332c 100644 --- a/drivers/net/usb/hso.c +++ b/drivers/net/usb/hso.c @@ -1297,6 +1297,7 @@ static int hso_serial_open(struct tty_struct *tty, struct file *filp) /* 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); |