]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/char/tty_io.c
[PATCH] ptmx: fix duplicate idr_remove
[karo-tx-linux.git] / drivers / char / tty_io.c
index 6f58cacec341d099393dec7b8396a0371a1062f3..b1f9a1582dd7d4be0ef363eeda933c7416bfd369 100644 (file)
@@ -2195,6 +2195,7 @@ static int ptmx_open(struct inode * inode, struct file * filp)
                return 0;
 out1:
        release_dev(filp);
+       return retval;
 out:
        down(&allocated_ptys_lock);
        idr_remove(&allocated_ptys, index);