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

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)