projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0e7d738
)
[PATCH] NFSv4: Fix thinko in fs/nfs/super.c
author
Trond Myklebust
<Trond.Myklebust@netapp.com>
Fri, 20 Oct 2006 06:28:37 +0000
(23:28 -0700)
committer
Linus Torvalds
<torvalds@g5.osdl.org>
Fri, 20 Oct 2006 17:26:38 +0000
(10:26 -0700)
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>
fs/nfs/super.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/nfs/super.c
b/fs/nfs/super.c
index 28659a919d6e47e5dfcf4ec3a0bdc7e827b4d477..28108c82b88742d6e325a0736f820bf8e044910e 100644
(file)
--- a/
fs/nfs/super.c
+++ b/
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 */
if (addr.sin_port == 0)
- addr.sin_port =
NFS_PORT
;
+ addr.sin_port =
htons(NFS_PORT)
;
/* Grab the authentication type */
authflavour = RPC_AUTH_UNIX;