Commit d2f197fa authored by Jiri Slaby's avatar Jiri Slaby Committed by James Toy

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: default avatarJiri Slaby <jirislaby@gmail.com>
Cc: Greg KH <greg@kroah.com>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
parent a208cedf
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment