patch-2.3.11 linux/fs/ncpfs/dir.c

Next file: linux/fs/nfs/read.c
Previous file: linux/fs/file_table.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.10/linux/fs/ncpfs/dir.c linux/fs/ncpfs/dir.c
@@ -349,6 +349,9 @@
 	int len = dentry->d_name.len;      
 	struct ncpfs_inode_info finfo;
 	__u8 __name[dentry->d_name.len + 1];
+
+	if (!dir)
+		return 0;
         
 	server = NCP_SERVER(dir);
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)