From 762e6b856c64ee48f286a7f0b45d0067e556b252 Mon Sep 17 00:00:00 2001 From: Eivind Eklund Date: Wed, 15 Dec 1999 23:02:35 +0000 Subject: Introduce NDFREE (and remove VOP_ABORTOP) --- sys/compat/linux/linux_misc.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'sys/compat/linux/linux_misc.c') diff --git a/sys/compat/linux/linux_misc.c b/sys/compat/linux/linux_misc.c index 36f1165ca2e94..1835c9ce9480a 100644 --- a/sys/compat/linux/linux_misc.c +++ b/sys/compat/linux/linux_misc.c @@ -54,6 +54,7 @@ #include #include #include +#include #include #include @@ -194,10 +195,15 @@ linux_uselib(struct proc *p, struct linux_uselib_args *args) goto cleanup; vp = ni.ni_vp; + /* + * XXX This looks like a bogus check - a LOCKLEAF namei should not succeed + * without returning a vnode. + */ if (vp == NULL) { error = ENOEXEC; /* ?? */ goto cleanup; } + NDFREE(&ni, NDF_ONLY_PNBUF); /* * From here on down, we have a locked vnode that must be unlocked. -- cgit v1.3