diff options
author | Al Viro <viro@ftp.linux.org.uk> | 2007-07-22 05:59:06 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-07-22 14:15:18 -0400 |
commit | 41089644c110756a6d09ace77c8d7624660d086a (patch) | |
tree | d61b773bf0508925142c6d2941c4609afe5a9538 /fs/nfs | |
parent | 77668791d96436f48fca94255934b67dab924a0f (diff) |
fix broken handling of port=... in NFS option parsing
Obviously broken on little-endian; fortunately, the option is not
frequently used...
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
[ Hey, sparse is wonderful, but even better than sparse is having people
like Al that actually _run_ it and fix bugs using it. - Linus ]
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'fs/nfs')
-rw-r--r-- | fs/nfs/super.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/nfs/super.c b/fs/nfs/super.c index b34b7a711d5b..b2a851c1b8cb 100644 --- a/fs/nfs/super.c +++ b/fs/nfs/super.c | |||
@@ -732,7 +732,7 @@ static int nfs_parse_mount_options(char *raw, | |||
732 | return 0; | 732 | return 0; |
733 | if (option < 0 || option > 65535) | 733 | if (option < 0 || option > 65535) |
734 | return 0; | 734 | return 0; |
735 | mnt->nfs_server.address.sin_port = htonl(option); | 735 | mnt->nfs_server.address.sin_port = htons(option); |
736 | break; | 736 | break; |
737 | case Opt_rsize: | 737 | case Opt_rsize: |
738 | if (match_int(args, &mnt->rsize)) | 738 | if (match_int(args, &mnt->rsize)) |