]> Pileus Git - ~andy/linux/commitdiff
[PATCH] Initialize the .owner field the tty_ldisc structure.
authorRalf Baechle <ralf@linux-mips.org>
Wed, 12 Oct 2005 22:11:01 +0000 (23:11 +0100)
committerJeff Garzik <jgarzik@pobox.com>
Tue, 18 Oct 2005 21:03:28 +0000 (17:03 -0400)
If .owner isn't set the module can be unloaded even while still active.

Signed-off-by: Ralf Baechle DL5RB <ralf@linux-mips.org>
Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
drivers/net/hamradio/mkiss.c

index 7961f5b41c4bf0b7526b0719d5c2bd6e23156f35..85d6dc005be0f016aa2b64af184778de4641a37d 100644 (file)
@@ -977,6 +977,7 @@ out:
 }
 
 static struct tty_ldisc ax_ldisc = {
+       .owner          = THIS_MODULE,
        .magic          = TTY_LDISC_MAGIC,
        .name           = "mkiss",
        .open           = mkiss_open,