Re: [tty bug] kernel BUG at drivers/char/tty_ldisc.c:359!

From: Alan Cox
Date: Tue Jan 13 2009 - 07:23:46 EST


On Tue, 13 Jan 2009 13:10:39 +0100
Ingo Molnar <mingo@xxxxxxx> wrote:

>
> FYI, -tip testing found a new warning in drivers/char/tty_ldisc.c:

Thanks - yes there is a real bug that is exposed by the BKL drop if you
manage to hit the flush ioctl as the ldisc changes

Change the
ld = tty_ldisc_ref(tty)

to
ld = tty_ldisc_ref_wait(tty);

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/