Skip to content

Commit

Permalink
[PATCH] Initialize the .owner field the tty_ldisc structure.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Ralf Baechle authored and Jeff Garzik committed Oct 18, 2005
1 parent 5793f4b commit 74cfe03
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/net/hamradio/mkiss.c
Original file line number Diff line number Diff line change
Expand Up @@ -977,6 +977,7 @@ static void mkiss_write_wakeup(struct tty_struct *tty)
}

static struct tty_ldisc ax_ldisc = {
.owner = THIS_MODULE,
.magic = TTY_LDISC_MAGIC,
.name = "mkiss",
.open = mkiss_open,
Expand Down

0 comments on commit 74cfe03

Please sign in to comment.