Explorar o código

[PATCH] NFSv4: Fix thinko in fs/nfs/super.c

Duh. addr.sin_port should be in network byte order.

Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Trond Myklebust %!s(int64=18) %!d(string=hai) anos
pai
achega
575b5c7870
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      fs/nfs/super.c

+ 1 - 1
fs/nfs/super.c

@@ -834,7 +834,7 @@ static int nfs4_get_sb(struct file_system_type *fs_type,
 	}
 	}
 	/* RFC3530: The default port for NFS is 2049 */
 	/* RFC3530: The default port for NFS is 2049 */
 	if (addr.sin_port == 0)
 	if (addr.sin_port == 0)
-		addr.sin_port = NFS_PORT;
+		addr.sin_port = htons(NFS_PORT);
 
 
 	/* Grab the authentication type */
 	/* Grab the authentication type */
 	authflavour = RPC_AUTH_UNIX;
 	authflavour = RPC_AUTH_UNIX;