summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@home.transmeta.com>2002-07-31 04:13:05 -0700
committerLinus Torvalds <torvalds@home.transmeta.com>2002-07-31 04:13:05 -0700
commit454e1bfb9bf19755a4215459b8f5f7dee8d9fd21 (patch)
tree742dfa9b33d798abddce0d74e0081eadd10e30cd
parent377e8a1a11e84e9080ffc526681f005ee2623b64 (diff)
We'd better BUG out inside the NFS code rather than return a
bogus dentry pointer to the VFS layer (which would oops on it inside the dcache lock).
-rw-r--r--fs/nfs/dir.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/fs/nfs/dir.c b/fs/nfs/dir.c
index 9e0c625fba7f..bba0eb57f54a 100644
--- a/fs/nfs/dir.c
+++ b/fs/nfs/dir.c
@@ -657,6 +657,7 @@ static struct dentry *nfs_lookup(struct inode *dir, struct dentry * dentry)
out_unlock:
unlock_kernel();
out:
+ BUG_ON(error > 0);
return ERR_PTR(error);
}