Re: [PATCH] fix oops in driver/serial/core.c

Milton Miller (miltonm@bga.com)
Mon, 9 Jun 2003 01:18:14 -0500 (CDT)


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/