summaryrefslogtreecommitdiffstats
path: root/drivers/char/riscom8.c
diff options
context:
space:
mode:
authorJiri Slaby <jirislaby@gmail.com>2009-09-06 23:10:09 +0200
committerLive-CD User <linux@linux.site>2009-09-19 22:13:37 +0200
commit7e63d0c453aa3fae714bc679f6768203b5dc9c32 (patch)
treec701021cf2c3ae1d102e57af8289b1eb954a6c95 /drivers/char/riscom8.c
parenttty: riscom8, fix shutdown declaration (diff)
downloadlinux-7e63d0c453aa3fae714bc679f6768203b5dc9c32.tar.xz
linux-7e63d0c453aa3fae714bc679f6768203b5dc9c32.zip
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 '')
-rw-r--r--drivers/char/riscom8.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/char/riscom8.c b/drivers/char/riscom8.c
index 3c7cf2cf3ea2..3cfa22d469e0 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;