tty: Allow uart_register/unregister/register
commit3c867337cdb88f7b31f9fcf07003e97d408fcd26
authorAlan Cox <alan@linux.intel.com>
Mon, 14 May 2012 13:51:22 +0000 (14 14:51 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 1 Jun 2012 07:12:56 +0000 (1 15:12 +0800)
treec9c2404210f7273b36f639db36e645d5df21a6cb
parente9fecd74e41f2a9ff04071675be20a5db97723ac
tty: Allow uart_register/unregister/register

commit 1e66cded334e6cea596c72f6f650eec351b1e959 upstream.

This is legitimate but because we don't clear the drv->state pointer in the
unregister code causes a bogus BUG().

Resolves-bug: https://bugzilla.kernel.org/show_bug.cgi?id=42880
Signed-off-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/serial_core.c