parent
5b5b7e2ca2
commit
aede6a9670
@ -726,9 +726,10 @@ parse_mount_dev_present(const char *dev)
|
|||||||
|
|
||||||
NDINIT(&nd, LOOKUP, FOLLOW | LOCKLEAF, UIO_SYSSPACE, dev);
|
NDINIT(&nd, LOOKUP, FOLLOW | LOCKLEAF, UIO_SYSSPACE, dev);
|
||||||
error = namei(&nd);
|
error = namei(&nd);
|
||||||
if (!error)
|
if (!error) {
|
||||||
vput(nd.ni_vp);
|
vput(nd.ni_vp);
|
||||||
NDFREE_PNBUF(&nd);
|
NDFREE_PNBUF(&nd);
|
||||||
|
}
|
||||||
return (error != 0) ? 0 : 1;
|
return (error != 0) ? 0 : 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user