diff options
Diffstat (limited to 'drivers/char/pty.c')
-rw-r--r-- | drivers/char/pty.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/char/pty.c b/drivers/char/pty.c index c3ab8c3110c9..3c6b7911665f 100644 --- a/drivers/char/pty.c +++ b/drivers/char/pty.c | |||
@@ -544,8 +544,6 @@ free_mem_out: | |||
544 | module_put(o_tty->driver->owner); | 544 | module_put(o_tty->driver->owner); |
545 | free_tty_struct(o_tty); | 545 | free_tty_struct(o_tty); |
546 | pty_unix98_shutdown(tty); | 546 | pty_unix98_shutdown(tty); |
547 | free_tty_struct(tty); | ||
548 | module_put(driver->owner); | ||
549 | return -ENOMEM; | 547 | return -ENOMEM; |
550 | } | 548 | } |
551 | 549 | ||