diff options
author | green <green@FreeBSD.org> | 2003-01-07 20:59:55 +0000 |
---|---|---|
committer | green <green@FreeBSD.org> | 2003-01-07 20:59:55 +0000 |
commit | 19fd807f21ae37cb51fae8aac709d491b7fee9a9 (patch) | |
tree | 1d058ca662db7e00d1d2ccdd47d9f2e112667e51 /sys/kern/vfs_vnops.c | |
parent | 36d021812927bebd0324320a5990aa2e6abfba76 (diff) | |
download | FreeBSD-src-19fd807f21ae37cb51fae8aac709d491b7fee9a9.zip FreeBSD-src-19fd807f21ae37cb51fae8aac709d491b7fee9a9.tar.gz |
In vn_open(), unset ndp->ni_vp when returning failure so that code
which expects it to be NULL unless the return value was 0 will work.
Obtained from: TrustedBSD Project
Sponsored by: DARPA, Network Associates Laboratories
Diffstat (limited to 'sys/kern/vfs_vnops.c')
-rw-r--r-- | sys/kern/vfs_vnops.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/kern/vfs_vnops.c b/sys/kern/vfs_vnops.c index a801728..8929705 100644 --- a/sys/kern/vfs_vnops.c +++ b/sys/kern/vfs_vnops.c @@ -271,6 +271,7 @@ bad: NDFREE(ndp, NDF_ONLY_PNBUF); vput(vp); *flagp = fmode; + ndp->ni_vp = NULL; return (error); } |