aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/hamradio
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2005-10-12 18:11:01 -0400
committerJeff Garzik <jgarzik@pobox.com>2005-10-18 17:03:28 -0400
commit74cfe03f80adc320bde4dd37616354aefe2271aa (patch)
treea5b58d998d2f653d34f331e17db92b8c3692e09e /drivers/net/hamradio
parent5793f4be23f0171b4999ca68a39a9157b44139f3 (diff)
[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:
977} 977}
978 978
979static struct tty_ldisc ax_ldisc = { 979static struct tty_ldisc ax_ldisc = {
980 .owner = THIS_MODULE,
980 .magic = TTY_LDISC_MAGIC, 981 .magic = TTY_LDISC_MAGIC,
981 .name = "mkiss", 982 .name = "mkiss",
982 .open = mkiss_open, 983 .open = mkiss_open,