diff options
| -rw-r--r-- | sys/kern/vfs_export.c | 2 | ||||
| -rw-r--r-- | sys/kern/vfs_subr.c | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/sys/kern/vfs_export.c b/sys/kern/vfs_export.c index 6d60d44deb21..8beb3e6309ab 100644 --- a/sys/kern/vfs_export.c +++ b/sys/kern/vfs_export.c @@ -1319,6 +1319,8 @@ bdevvp(dev, vpp) *vpp = NULLVP; return (ENXIO); } + if (vfinddev(dev, VCHR, vpp)) + return (0); error = getnewvnode(VT_NON, (struct mount *)0, spec_vnodeop_p, &nvp); if (error) { *vpp = NULLVP; diff --git a/sys/kern/vfs_subr.c b/sys/kern/vfs_subr.c index 6d60d44deb21..8beb3e6309ab 100644 --- a/sys/kern/vfs_subr.c +++ b/sys/kern/vfs_subr.c @@ -1319,6 +1319,8 @@ bdevvp(dev, vpp) *vpp = NULLVP; return (ENXIO); } + if (vfinddev(dev, VCHR, vpp)) + return (0); error = getnewvnode(VT_NON, (struct mount *)0, spec_vnodeop_p, &nvp); if (error) { *vpp = NULLVP; |
