Properly return error when namei_kernel_simple fails.
This commit is contained in:
parent
688e4b57e6
commit
38619bb29f
|
@ -1,4 +1,4 @@
|
||||||
/* $NetBSD: vfs.c,v 1.1 2009/08/07 20:57:57 haad Exp $ */
|
/* $NetBSD: vfs.c,v 1.2 2009/10/11 10:54:52 haad Exp $ */
|
||||||
|
|
||||||
/*-
|
/*-
|
||||||
* Copyright (c) 2006-2007 Pawel Jakub Dawidek <pjd@FreeBSD.org>
|
* Copyright (c) 2006-2007 Pawel Jakub Dawidek <pjd@FreeBSD.org>
|
||||||
|
@ -51,7 +51,7 @@ lookupname(char *dirname, enum uio_seg seg, vnode_t **dirvpp, vnode_t **compvpp)
|
||||||
|
|
||||||
KASSERT(dirvpp == NULL);
|
KASSERT(dirvpp == NULL);
|
||||||
|
|
||||||
namei_simple_kernel(dirname, NSM_FOLLOW_NOEMULROOT, compvpp);
|
error = namei_simple_kernel(dirname, NSM_FOLLOW_NOEMULROOT, compvpp);
|
||||||
|
|
||||||
return error;
|
return error;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue