From: Jiri Slaby Date: Sun, 6 Sep 2009 21:10:09 +0000 (+0200) Subject: tty: riscom8, fix tty refcnt X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=7e63d0c453aa3fae714bc679f6768203b5dc9c32;p=openwrt%2Fstaging%2Fblogic.git 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 Signed-off-by: Greg Kroah-Hartman --- 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;