tty: n_tty, set tty_ldisc_ops::owner
authorJiri Slaby <jslaby@suse.cz>
Tue, 2 Mar 2021 06:21:39 +0000 (07:21 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 10 Mar 2021 08:34:06 +0000 (09:34 +0100)
commit5e30d3bf51ebb17f27bf66ae367cb0550857507a
treed21cef90ee6fca74f3987781658e385b074a2a3f
parent981b22b8777df7de070be1803f6d7ed4f634a43c
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>
drivers/tty/n_tty.c