diff options
Diffstat (limited to 'fs/ncpfs/dir.c')
-rw-r--r-- | fs/ncpfs/dir.c | 3 |
1 files changed, 3 insertions, 0 deletions
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); |