projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5793f4b
)
[PATCH] Initialize the .owner field the tty_ldisc structure.
author
Ralf Baechle
<ralf@linux-mips.org>
Wed, 12 Oct 2005 22:11:01 +0000
(23:11 +0100)
committer
Jeff 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
patch
|
blob
|
history
diff --git
a/drivers/net/hamradio/mkiss.c
b/drivers/net/hamradio/mkiss.c
index 7961f5b41c4bf0b7526b0719d5c2bd6e23156f35..85d6dc005be0f016aa2b64af184778de4641a37d 100644
(file)
--- 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,