Report error instead panicing
This commit is contained in:
parent
1f28a4b83e
commit
4ee157f5ce
@ -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…
x
Reference in New Issue
Block a user