tty: riscom8, fix tty refcnt
authorJiri Slaby <jirislaby@gmail.com>
Sun, 6 Sep 2009 21:10:09 +0000 (23:10 +0200)
committerLive-CD User <linux@linux.site>
Sat, 19 Sep 2009 20:13:37 +0000 (13:13 -0700)
commit7e63d0c453aa3fae714bc679f6768203b5dc9c32
treec701021cf2c3ae1d102e57af8289b1eb954a6c95
parent90387f5eb08e50d79ab305dab170b4a437d5802c
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>
drivers/char/riscom8.c