aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/tty/pty.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/tty/pty.c b/drivers/tty/pty.c
index ac723e3c031a..9bbdb1de12e2 100644
--- a/drivers/tty/pty.c
+++ b/drivers/tty/pty.c
@@ -388,7 +388,7 @@ err_deinit_tty:
388 deinitialize_tty_struct(o_tty); 388 deinitialize_tty_struct(o_tty);
389 free_tty_struct(o_tty); 389 free_tty_struct(o_tty);
390err_put_module: 390err_put_module:
391 module_put(o_tty->driver->owner); 391 module_put(driver->other->owner);
392err: 392err:
393 kfree(ports[0]); 393 kfree(ports[0]);
394 kfree(ports[1]); 394 kfree(ports[1]);