summaryrefslogtreecommitdiffstats
path: root/drivers/tty/tty_io.c
diff options
context:
space:
mode:
authorJohan Hovold <johan@kernel.org>2017-03-30 15:39:35 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-03-31 11:37:13 +0200
commit16b00ae82dce0e36384744553c6e9e97070813e8 (patch)
tree77cb6d5dc001b291d891eb315acea6bb7311cd9e /drivers/tty/tty_io.c
parent6a7e6f78c235975cc14d4e141fa088afffe7062c (diff)
downloadop-kernel-dev-16b00ae82dce0e36384744553c6e9e97070813e8.zip
op-kernel-dev-16b00ae82dce0e36384744553c6e9e97070813e8.tar.gz
tty: drop obsolete termios_locked comments
Drop comments about tty-driver termios_locked structures, which have been outdated since commit fe6e29fdb1a7 ("tty: simplify ktermios allocation"). Signed-off-by: Johan Hovold <johan@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/tty_io.c')
-rw-r--r--drivers/tty/tty_io.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/drivers/tty/tty_io.c b/drivers/tty/tty_io.c
index 8e96515..5f834dc 100644
--- a/drivers/tty/tty_io.c
+++ b/drivers/tty/tty_io.c
@@ -1520,7 +1520,7 @@ struct tty_struct *tty_init_dev(struct tty_driver *driver, int idx)
* This code guarantees that either everything succeeds and the
* TTY is ready for operation, or else the table slots are vacated
* and the allocated memory released. (Except that the termios
- * and locked termios may be retained.)
+ * may be retained.)
*/
if (!try_module_get(driver->owner))
@@ -3441,11 +3441,6 @@ static void destruct_tty_driver(struct kref *kref)
struct ktermios *tp;
if (driver->flags & TTY_DRIVER_INSTALLED) {
- /*
- * Free the termios and termios_locked structures because
- * we don't want to get memory leaks when modular tty
- * drivers are removed from the kernel.
- */
for (i = 0; i < driver->num; i++) {
tp = driver->termios[i];
if (tp) {
OpenPOWER on IntegriCloud