patch-2.4.0-test10 linux/fs/nfs/nfs2xdr.c

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

diff -u --recursive --new-file v2.4.0-test9/linux/fs/nfs/nfs2xdr.c linux/fs/nfs/nfs2xdr.c
@@ -104,7 +104,8 @@
 static inline u32*
 xdr_decode_time(u32 *p, u64 *timep)
 {
-	*timep = ((u64)ntohl(*p++) << 32) + (u64)ntohl(*p++);
+	u64 tmp = (u64)ntohl(*p++) << 32;
+	*timep = tmp + (u64)ntohl(*p++);
 	return p;
 }
 

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