Code: 8a 0b 31 c0 31 ed 88 c8 8a 80 c0 cd 4b c0 83 e0 04 84 c0 74 
Index: linux-2.5.43/fs/cifs/connect.c
===================================================================
RCS file: /build/cvsroot/linux-2.5.43/fs/cifs/connect.c,v
retrieving revision 1.1.1.2
diff -u -r1.1.1.2 connect.c
--- linux-2.5.43/fs/cifs/connect.c	16 Oct 2002 06:18:33 -0000	1.1.1.2
+++ linux-2.5.43/fs/cifs/connect.c	16 Oct 2002 06:52:27 -0000
@@ -610,7 +610,7 @@
 {
 	int rc = 0;
 	int xid;
-    int ntlmv2_flag = FALSE;
+	int ntlmv2_flag = FALSE;
 	struct socket *csocket;
 	struct sockaddr_in sin_server;
 /*	struct sockaddr_in6 sin_server6; */
@@ -627,7 +627,10 @@
 	xid = GetXid();
 	cFYI(0, ("\nEntering cifs_mount. Xid: %d with: %s\n", xid, mount_data));
 
-	parse_mount_options(mount_data, devname, &volume_info);
+	if (parse_mount_options(mount_data, devname, &volume_info)) {
+		FreeXid(xid);
+		return -EINVAL;
+	}
 
 	if (volume_info.username) {
 		cFYI(1, ("\nUsername: %s ", volume_info.username));
@@ -645,7 +648,7 @@
 		cERROR(1,
 		       ("\nCIFS mount error: No UNC path (e.g. -o unc=//192.168.1.100/public) specified  "));
 		FreeXid(xid);
-		return -ENODEV;
+		return -EINVAL;
 	}
 	/* BB add support to use the multiuser_mount flag BB */
 	existingCifsSes =
@@ -816,7 +819,7 @@
 								 "",
 								 cifs_sb->
 								 local_nls);
-					return -ENODEV;
+					return -EINVAL;
 				} else {
 					rc = CIFSTCon(xid, pSesInfo,
 						      volume_info.UNC,
-- function.linuxpower.ca- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/