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>
This commit is contained in:
parent
90387f5eb0
commit
7e63d0c453
1 changed files with 1 additions and 1 deletions
|
@ -467,7 +467,7 @@ static void rc_transmit(struct riscom_board const *bp)
|
||||||
rc_out(bp, CD180_CCR, CCR_CORCHG2);
|
rc_out(bp, CD180_CCR, CCR_CORCHG2);
|
||||||
port->break_length = 0;
|
port->break_length = 0;
|
||||||
}
|
}
|
||||||
return;
|
goto out;
|
||||||
}
|
}
|
||||||
|
|
||||||
count = CD180_NFIFO;
|
count = CD180_NFIFO;
|
||||||
|
|
Loading…
Reference in a new issue