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
-  Lines: 10
-  Date:
Fri Jul 16 10:57:40 1999
-  Orig file: 
v2.3.10/linux/fs/ncpfs/dir.c
-  Orig date: 
Thu Jul  8 15:42:21 1999
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)