]> Zhao Yanbai Git Server - minix.git/commitdiff
Report error instead panicing
authorThomas Veerman <thomas@minix3.org>
Mon, 22 Aug 2011 13:08:38 +0000 (13:08 +0000)
committerThomas Veerman <thomas@minix3.org>
Mon, 22 Aug 2011 13:08:38 +0000 (13:08 +0000)
servers/avfs/path.c

index 213ae27cf452bd65e2880c01965da9bc75525c56..d5afaaf38b8ef15a4ce140f56438e9c84377a118 100644 (file)
@@ -341,7 +341,12 @@ struct fproc *rfp;
                           }
                        }
                }
-               assert(dir_vp);
+               if (dir_vp == NULL) {
+                       printf("VFS: path lookup error; root node not found\n");
+                       if (vmpres) unlock_vmnt(vmpres);
+                       *(resolve->l_vmp) = NULL;
+                       return(EIO);
+               }
        } else {
                /* Climbing up mount */
                /* Find the vmnt that represents the partition on