lkml.org 
[lkml]   [2003]   [Jun]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[trivial patch][2.5] rmmod 8250 oopses
Hi,

Removing serial driver modules would oops, please apply:

--- linux-2.5.70-bk12/drivers/serial/core.c 2003-06-13 23:43:26.000000000 -0400
+++ linux-2.5.70-bk12-perso/drivers/serial/core.c 2003-06-13 23:45:06.000000000 -0400
@@ -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)
-
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/
\
 
 \ /
  Last update: 2005-03-22 13:36    [W:0.025 / U:0.504 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site