diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2005-10-12 23:11:01 +0100 |
---|---|---|
committer | Jeff Garzik <jgarzik@pobox.com> | 2005-10-18 17:03:28 -0400 |
commit | 74cfe03f80adc320bde4dd37616354aefe2271aa (patch) | |
tree | a5b58d998d2f653d34f331e17db92b8c3692e09e /drivers/net/hamradio/mkiss.c | |
parent | 5793f4be23f0171b4999ca68a39a9157b44139f3 (diff) | |
download | blackbird-op-linux-74cfe03f80adc320bde4dd37616354aefe2271aa.tar.gz blackbird-op-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/mkiss.c')
-rw-r--r-- | drivers/net/hamradio/mkiss.c | 1 |
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, |