From: Ralf Baechle Date: Wed, 12 Oct 2005 22:11:01 +0000 (+0100) Subject: [PATCH] Initialize the .owner field the tty_ldisc structure. X-Git-Tag: v2.6.15-rc1~733^2~1^2~38 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=74cfe03f80adc320bde4dd37616354aefe2271aa;p=~emulex%2Finfiniband.git [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 Signed-off-by: Jeff Garzik --- diff --git a/drivers/net/hamradio/mkiss.c b/drivers/net/hamradio/mkiss.c index 7961f5b41c4..85d6dc005be 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,