Report error instead panicing
This commit is contained in:
parent
1f28a4b83e
commit
4ee157f5ce
1 changed files with 6 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue