summaryrefslogtreecommitdiffstats
path: root/drivers/net/hamradio
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2005-10-13 00:11:01 +0200
committerJeff Garzik <jgarzik@pobox.com>2005-10-18 23:03:28 +0200
commit74cfe03f80adc320bde4dd37616354aefe2271aa (patch)
treea5b58d998d2f653d34f331e17db92b8c3692e09e /drivers/net/hamradio
parent[PATCH] SMACK support for mkiss (diff)
downloadlinux-74cfe03f80adc320bde4dd37616354aefe2271aa.tar.xz
linux-74cfe03f80adc320bde4dd37616354aefe2271aa.zip
[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: Ralf Baechle DL5RB <ralf@linux-mips.org> Signed-off-by: Jeff Garzik <jgarzik@pobox.com>
Diffstat (limited to 'drivers/net/hamradio')
-rw-r--r--drivers/net/hamradio/mkiss.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/hamradio/mkiss.c b/drivers/net/hamradio/mkiss.c
index 7961f5b41c4b..85d6dc005be0 100644
--- a/drivers/net/hamradio/mkiss.c
+++ b/drivers/net/hamradio/mkiss.c
@@ -977,6 +977,7 @@ out:
}
static struct tty_ldisc ax_ldisc = {
+ .owner = THIS_MODULE,
.magic = TTY_LDISC_MAGIC,
.name = "mkiss",
.open = mkiss_open,