Commit 454e1bfb authored by Linus Torvalds's avatar Linus Torvalds

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).
parent 377e8a1a
......@@ -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);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment