patch-2.4.20 linux-2.4.20/fs/ncpfs/ncplib_kernel.c

Next file: linux-2.4.20/fs/nfs/dir.c
Previous file: linux-2.4.20/fs/ncpfs/ioctl.c
Back to the patch index
Back to the overall index

diff -urN linux-2.4.19/fs/ncpfs/ncplib_kernel.c linux-2.4.20/fs/ncpfs/ncplib_kernel.c
@@ -258,6 +258,7 @@
 	target->nameLen = *name_len;
 	memcpy(target->entryName, name_len + 1, *name_len);
 	target->entryName[*name_len] = '\0';
+	target->volNumber = le32_to_cpu(target->volNumber);
 	return;
 }
 
@@ -338,7 +339,7 @@
 	}
 
 	result = NW_NS_DOS;
-	no_namespaces = ncp_reply_word(server, 0);
+	no_namespaces = le16_to_cpu(ncp_reply_word(server, 0));
 	namespace = ncp_reply_data(server, 2);
 
 	while (no_namespaces > 0) {

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