fix oops in driver/serial/core.c

hugang (hugang@soulinfo.com)
Sun, 8 Jun 2003 21:19:28 +0800


Hell all:

Fix bug in 2.5.70.

--- linux-2.5.70/drivers/serial/core.c.old Sun Jun 8 21:11:49 2003
+++ linux-2.5.70/drivers/serial/core.c Sun Jun 8 21:12:06 2003
@@ -2189,11 +2189,11 @@
void uart_unregister_driver(struct uart_driver *drv)
{
struct tty_driver *p = drv->tty_driver;
- drv->tty_driver = NULL;
tty_unregister_driver(p);
kfree(drv->state);
kfree(drv->tty_driver->termios);
kfree(drv->tty_driver);
+ drv->tty_driver = NULL;
}

struct tty_driver *uart_console_device(struct console *co, int *index)

-- 
Hu Gang / Steve
Email        : huagng@soulinfo.com, steve@soulinfo.com
GPG FinePrint: 4099 3F1D AE01 1817 68F7  D499 A6C2 C418 86C8 610E
http://soulinfo.com/~hugang/HuGang.asc
ICQ#         : 205800361
Registered Linux User : 204016
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/