diff options
Diffstat (limited to 'drivers/char/tty_io.c')
-rw-r--r-- | drivers/char/tty_io.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/char/tty_io.c b/drivers/char/tty_io.c index 6f58cacec341..b1f9a1582dd7 100644 --- a/drivers/char/tty_io.c +++ b/drivers/char/tty_io.c | |||
@@ -2195,6 +2195,7 @@ static int ptmx_open(struct inode * inode, struct file * filp) | |||
2195 | return 0; | 2195 | return 0; |
2196 | out1: | 2196 | out1: |
2197 | release_dev(filp); | 2197 | release_dev(filp); |
2198 | return retval; | ||
2198 | out: | 2199 | out: |
2199 | down(&allocated_ptys_lock); | 2200 | down(&allocated_ptys_lock); |
2200 | idr_remove(&allocated_ptys, index); | 2201 | idr_remove(&allocated_ptys, index); |