Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=41089644c110756a6d09ace77c8d7624660d086a
Commit:     41089644c110756a6d09ace77c8d7624660d086a
Parent:     77668791d96436f48fca94255934b67dab924a0f
Author:     Al Viro <[EMAIL PROTECTED]>
AuthorDate: Sun Jul 22 10:59:06 2007 +0100
Committer:  Linus Torvalds <[EMAIL PROTECTED]>
CommitDate: Sun Jul 22 11:15:18 2007 -0700

    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 <[EMAIL PROTECTED]>
    [ 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 <[EMAIL PROTECTED]>
---
 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 b34b7a7..b2a851c 100644
--- a/fs/nfs/super.c
+++ b/fs/nfs/super.c
@@ -732,7 +732,7 @@ static int nfs_parse_mount_options(char *raw,
                                return 0;
                        if (option < 0 || option > 65535)
                                return 0;
-                       mnt->nfs_server.address.sin_port = htonl(option);
+                       mnt->nfs_server.address.sin_port = htons(option);
                        break;
                case Opt_rsize:
                        if (match_int(args, &mnt->rsize))
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to