lkml.org 
[lkml]   [2003]   [Jun]   [9]   [last100]   RSS Feed
Views: [more markup]   [less markup]   [headers]   [forward]  
 
Messages in this thread
Patch in this message
/
DateMon, 9 Jun 2003 01:18:14 -0500 (CDT)
FromMilton Miller <>
SubjectRe: [PATCH] fix oops in driver/serial/core.c
How about the following patch instead, which preserves the reordering
done by Al Viro?

===== drivers/serial/core.c 1.62 vs edited =====
--- 1.62/drivers/serial/core.c	Fri Jun  6 01:36:47 2003
+++ edited/drivers/serial/core.c	Sun Jun  8 20:59:44 2003
@@ -2192,8 +2192,8 @@
 	drv->tty_driver = NULL;
 	tty_unregister_driver(p);
 	kfree(drv->state);
-	kfree(drv->tty_driver->termios);
-	kfree(drv->tty_driver);
+	kfree(p->termios);
+	kfree(p);
 }
 
 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 12:36    [W:0.440 / U:0.580 seconds]
©2003-2008 Jasper Spaans