patch-2.4.21 linux-2.4.21/fs/nfs/nfsroot.c
Next file: linux-2.4.21/fs/nfs/pagelist.c
Previous file: linux-2.4.21/fs/nfs/file.c
Back to the patch index
Back to the overall index
-  Lines: 13
-  Date:
2003-06-13 07:51:37.000000000 -0700
-  Orig file: 
linux-2.4.20/fs/nfs/nfsroot.c
-  Orig date: 
2002-11-28 15:53:15.000000000 -0800
diff -urN linux-2.4.20/fs/nfs/nfsroot.c linux-2.4.21/fs/nfs/nfsroot.c
@@ -384,10 +384,11 @@
 					"number from server, using default\n");
 			port = nfsd_port;
 		}
-		nfs_port = htons(port);
+		nfs_port = port;
 		dprintk("Root-NFS: Portmapper on server returned %d "
 			"as nfsd port\n", port);
 	}
+	nfs_port = htons(nfs_port);
 
 	if ((port = root_nfs_getport(NFS_MNT_PROGRAM, mountd_ver, proto)) < 0) {
 		printk(KERN_ERR "Root-NFS: Unable to get mountd port "
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)