diff options
author | Jiri Slaby <jslaby@suse.cz> | 2021-03-02 07:21:39 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-03-10 09:34:06 +0100 |
commit | 5e30d3bf51ebb17f27bf66ae367cb0550857507a (patch) | |
tree | d21cef90ee6fca74f3987781658e385b074a2a3f /drivers/tty/n_tty.c | |
parent | tty: remove TTY_LDISC_MAGIC (diff) | |
download | linux-5e30d3bf51ebb17f27bf66ae367cb0550857507a.tar.xz linux-5e30d3bf51ebb17f27bf66ae367cb0550857507a.zip |
tty: n_tty, set tty_ldisc_ops::owner
Set tty_ldisc_ops::owner to THIS_MODULE. This has no effect currently as
n_tty cannot be built as a module. If someone ever tries to modularize
tty, we wouldn't manage module's reference count as in other ldiscs. So
fix this just in case.
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Link: https://lore.kernel.org/r/20210302062214.29627-9-jslaby@suse.cz
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/n_tty.c')
-rw-r--r-- | drivers/tty/n_tty.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/tty/n_tty.c b/drivers/tty/n_tty.c index 7c53185bce57..a6f3c5c148eb 100644 --- a/drivers/tty/n_tty.c +++ b/drivers/tty/n_tty.c @@ -2488,6 +2488,7 @@ static int n_tty_ioctl(struct tty_struct *tty, struct file *file, } static struct tty_ldisc_ops n_tty_ops = { + .owner = THIS_MODULE, .name = "n_tty", .open = n_tty_open, .close = n_tty_close, |