From: Thomas Veerman Date: Mon, 22 Aug 2011 13:08:38 +0000 (+0000) Subject: Report error instead panicing X-Git-Tag: v3.2.0~338 X-Git-Url: http://zhaoyanbai.com/repos/FAQ?a=commitdiff_plain;h=4ee157f5ce041d5e7f90a7f023c0293d0fe90329;p=minix.git Report error instead panicing --- diff --git a/servers/avfs/path.c b/servers/avfs/path.c index 213ae27cf..d5afaaf38 100644 --- a/servers/avfs/path.c +++ b/servers/avfs/path.c @@ -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