]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
mxser: don't allocate MXSER_PORTS + 1
authorJiri Slaby <jslaby@suse.cz>
Fri, 18 Jun 2021 06:14:38 +0000 (08:14 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 18 Jun 2021 11:10:00 +0000 (13:10 +0200)
commit389fc82e475be8f6c1745f804470bea5e3bf7dc1
tree2104439b98e79d48363f14c1650ded2dc24c6a15
parent95b3ea4c6f45f3172dae29f303579743c2aa303d
mxser: don't allocate MXSER_PORTS + 1

The MXSER_PORTS's tty_device is never registered and neither its
tty_port instance exists. Hence, it's quite pointless to allocate it.

It used to be used for global information fetches via ioctls. We have
just removed these as non-existent tty_device+tty_port was exactly the
reason to remove the ioctls.

It would be peculiar to add this "virtual" port as we require a backing
tty_port since commit ecbbfd44a08f (TTY: move tty buffers to tty_port)
in 2012.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Link: https://lore.kernel.org/r/20210618061516.662-33-jslaby@suse.cz
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/mxser.c