lkml.org 
[lkml]   [2006]   [Oct]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Date
    Subject[PATCH 01/11] NFSv4: Fix thinko in fs/nfs/super.c
    From: Trond Myklebust <Trond.Myklebust@netapp.com>

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

    Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
    ---

    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 28659a9..28108c8 100644
    --- a/fs/nfs/super.c
    +++ b/fs/nfs/super.c
    @@ -834,7 +834,7 @@ static int nfs4_get_sb(struct file_syste
    }
    /* 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;
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/
    \
     
     \ /
      Last update: 2006-10-19 19:13    [W:0.021 / U:32.068 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site