Skip to content

Commit

Permalink
tty: riscom8, fix tty refcnt
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jiri Slaby authored and Live-CD User committed Sep 19, 2009
1 parent 90387f5 commit 7e63d0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/char/riscom8.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 7e63d0c

Please sign in to comment.