tty: Allow uart_register/unregister/register
authorAlan Cox <alan@linux.intel.com>
Mon, 14 May 2012 13:51:22 +0000 (14:51 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 14 May 2012 16:04:28 +0000 (09:04 -0700)
commit1e66cded334e6cea596c72f6f650eec351b1e959
treeab344befd3d74f3ff168d0ab264adb3020e60a34
parent1541f845d123a48fbca3cee32b2963b3fb3da83a
tty: Allow uart_register/unregister/register

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>
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/serial_core.c