aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorBoris Popov <bp@FreeBSD.org>2001-05-18 07:43:13 +0000
committerBoris Popov <bp@FreeBSD.org>2001-05-18 07:43:13 +0000
commit10fa1684ed3be7246e2704dfa94e1dd53f306d45 (patch)
tree38a68f4ce61bf1cbb02e394de19e7cd1676dd0f4 /sys
parent108b08b24e330a534b219378d68db1ee6467f366 (diff)
Notes
Diffstat (limited to 'sys')
-rw-r--r--sys/fs/unionfs/union_vnops.c2
-rw-r--r--sys/miscfs/union/union_vnops.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/fs/unionfs/union_vnops.c b/sys/fs/unionfs/union_vnops.c
index 93922ecabaaa..3402825820f6 100644
--- a/sys/fs/unionfs/union_vnops.c
+++ b/sys/fs/unionfs/union_vnops.c
@@ -1630,7 +1630,7 @@ union_getwritemount(ap)
return (EOPNOTSUPP);
}
VI_UNLOCK(vp);
- panic("union_getwritemount: missing upper layer");
+ return (EACCES);
}
return(VOP_GETWRITEMOUNT(uvp, ap->a_mpp));
}
diff --git a/sys/miscfs/union/union_vnops.c b/sys/miscfs/union/union_vnops.c
index 93922ecabaaa..3402825820f6 100644
--- a/sys/miscfs/union/union_vnops.c
+++ b/sys/miscfs/union/union_vnops.c
@@ -1630,7 +1630,7 @@ union_getwritemount(ap)
return (EOPNOTSUPP);
}
VI_UNLOCK(vp);
- panic("union_getwritemount: missing upper layer");
+ return (EACCES);
}
return(VOP_GETWRITEMOUNT(uvp, ap->a_mpp));
}