diff options
author | Jiri Slaby <jirislaby@gmail.com> | 2009-09-06 23:10:09 +0200 |
---|---|---|
committer | Live-CD User <linux@linux.site> | 2009-09-19 13:13:37 -0700 |
commit | 7e63d0c453aa3fae714bc679f6768203b5dc9c32 (patch) | |
tree | c701021cf2c3ae1d102e57af8289b1eb954a6c95 /drivers | |
parent | 90387f5eb08e50d79ab305dab170b4a437d5802c (diff) | |
download | op-kernel-dev-7e63d0c453aa3fae714bc679f6768203b5dc9c32.zip op-kernel-dev-7e63d0c453aa3fae714bc679f6768203b5dc9c32.tar.gz |
tty: riscom8, fix tty refcnt
Stanse found a tty refcnt leak on one fail path in rc_transmit.
Fix that by jumping to the 'out' label.
http://stanse.fi.muni.cz/
Signed-off-by: Jiri Slaby <jirislaby@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/char/riscom8.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/char/riscom8.c b/drivers/char/riscom8.c index 3c7cf2c..3cfa22d 100644 --- a/drivers/char/riscom8.c +++ b/drivers/char/riscom8.c @@ -467,7 +467,7 @@ static void rc_transmit(struct riscom_board const *bp) rc_out(bp, CD180_CCR, CCR_CORCHG2); port->break_length = 0; } - return; + goto out; } count = CD180_NFIFO; |