Kernel: Bug fix for failed _open on devices
authorWill Sowerbutts <will@sowerbutts.com>
Wed, 25 Feb 2015 00:13:04 +0000 (00:13 +0000)
committerWill Sowerbutts <will@sowerbutts.com>
Wed, 25 Feb 2015 23:43:28 +0000 (23:43 +0000)
Kernel/syscall_fs2.c

index 23ea036..0290b6d 100644 (file)
@@ -507,7 +507,7 @@ arg_t _open(void)
        if (isdevice(ino)
            && d_open((int) ino->c_node.i_addr[0], flag) != 0) {
                udata.u_error = ENXIO;
-               goto idrop;
+               goto cantopen;
        }
        /* get the static pointer back */
        ino = itmp;