提交 74cfe03f 编写于 作者: R Ralf Baechle 提交者: Jeff Garzik

[PATCH] Initialize the .owner field the tty_ldisc structure.

If .owner isn't set the module can be unloaded even while still active.
Signed-off-by: NRalf Baechle DL5RB <ralf@linux-mips.org>
Signed-off-by: NJeff Garzik <jgarzik@pobox.com>
上级 5793f4be
...@@ -977,6 +977,7 @@ static void mkiss_write_wakeup(struct tty_struct *tty) ...@@ -977,6 +977,7 @@ static void mkiss_write_wakeup(struct tty_struct *tty)
} }
static struct tty_ldisc ax_ldisc = { static struct tty_ldisc ax_ldisc = {
.owner = THIS_MODULE,
.magic = TTY_LDISC_MAGIC, .magic = TTY_LDISC_MAGIC,
.name = "mkiss", .name = "mkiss",
.open = mkiss_open, .open = mkiss_open,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册