Skip to contentSkip to conversation

ncpfs, kernel 2.4.18

PATCH New David Jander 1 participant 1 message Apr 4, 2003

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ncpfs, kernel 2.4.18

This fixes a bug with Novell Netware Servers (in my case 3.12) sending error messages (and annoying beeps) to the console each time a linux client accesses de root directory of a volume. Please comment !
Please send replies with CC to me, since I am not subscribed to lkml.

Signature · 3 lines
David Jander
Protonic Holland.
e-mail: [email protected]
fs/ncpfs/ncplib_kernel.c +6 -0
@@ -272,6 +272,12 @@
 	__u32 dirent = NCP_FINFO(dir)->dirEntNum;
 	int result;
 
+	DPRINTK("NCPFS : ncp_optain_info for: %s\n",path);
+	if(path==NULL)
+	{
+		printk(KERN_ERR "ncp_obtain_info: Invalid path %s!\n",path);
+		return -EINVAL;
+	}
 	if (target == NULL) {
 		printk(KERN_ERR "ncp_obtain_info: invalid call\n");
 		return -EINVAL;