Commit 74cfe03f authored by Ralf Baechle's avatar Ralf Baechle Committed by 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: default avatarRalf Baechle DL5RB <ralf@linux-mips.org>
Signed-off-by: default avatarJeff Garzik <jgarzik@pobox.com>
parent 5793f4be
......@@ -977,6 +977,7 @@ static void mkiss_write_wakeup(struct tty_struct *tty)
}
static struct tty_ldisc ax_ldisc = {
.owner = THIS_MODULE,
.magic = TTY_LDISC_MAGIC,
.name = "mkiss",
.open = mkiss_open,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment