]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[PATCH] tty_io.c balance tty_ldisc_ref()
authorDan Carpenter <error27@gmail.com>
Wed, 13 Dec 2006 08:35:09 +0000 (00:35 -0800)
committerLinus Torvalds <torvalds@woody.osdl.org>
Wed, 13 Dec 2006 17:05:53 +0000 (09:05 -0800)
commitb3f13debd593dbd7242a4ecf6c9b4d529805e5a0
treed37de63bd6809b14fe789195706b754f11de2254
parenta2db8dfce8d94fecae50128d912fec7980687a51
[PATCH] tty_io.c balance tty_ldisc_ref()

tty_ldisc_deref() should only be called when tty_ldisc_ref() succeeds
otherwise it triggers a BUG().  There's already a function
tty_ldisc_flush() that flushes properly.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Acked-by: Alan Cox <alan@redhat.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/char/tty_io.c