From d6434e1042f3b0a6dfe1b1f615af369486f9b1fa Mon Sep 17 00:00:00 2001 From: Ralf Baechle Date: Sat, 9 Oct 1999 00:00:47 +0000 Subject: Merge with 2.3.19. --- fs/ncpfs/dir.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'fs/ncpfs/dir.c') diff --git a/fs/ncpfs/dir.c b/fs/ncpfs/dir.c index cf4c13fde..ee2886228 100644 --- a/fs/ncpfs/dir.c +++ b/fs/ncpfs/dir.c @@ -349,6 +349,9 @@ ncp_lookup_validate(struct dentry * dentry, int flags) int len = dentry->d_name.len; struct ncpfs_inode_info finfo; __u8 __name[dentry->d_name.len + 1]; + + if (!dentry->d_inode || !dir) + return 0; server = NCP_SERVER(dir); -- cgit v1.2.3