Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Jiri Slaby and committed by
Live-CD User
7e63d0c4 90387f5e

+1 -1
+1 -1
drivers/char/riscom8.c
··· 467 467 rc_out(bp, CD180_CCR, CCR_CORCHG2); 468 468 port->break_length = 0; 469 469 } 470 - return; 470 + goto out; 471 471 } 472 472 473 473 count = CD180_NFIFO;