lkml.org 
[lkml]   [2012]   [Jan]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Subject[PATCH 4/5] NFS: pass current net to rpc_pton() while parsing mount options
    From
    Date


    Signed-off-by: Stanislav Kinsbursky <skinsbursky@parallels.com>

    ---
    fs/nfs/super.c | 4 ++--
    1 files changed, 2 insertions(+), 2 deletions(-)

    diff --git a/fs/nfs/super.c b/fs/nfs/super.c
    index b79f2a1..5ed6071 100644
    --- a/fs/nfs/super.c
    +++ b/fs/nfs/super.c
    @@ -1408,7 +1408,7 @@ static int nfs_parse_mount_options(char *raw,
    if (string == NULL)
    goto out_nomem;
    mnt->nfs_server.addrlen =
    - rpc_pton(&init_net, string, strlen(string),
    + rpc_pton(mnt->net, string, strlen(string),
    (struct sockaddr *)
    &mnt->nfs_server.address,
    sizeof(mnt->nfs_server.address));
    @@ -1430,7 +1430,7 @@ static int nfs_parse_mount_options(char *raw,
    if (string == NULL)
    goto out_nomem;
    mnt->mount_server.addrlen =
    - rpc_pton(&init_net, string, strlen(string),
    + rpc_pton(mnt->net, string, strlen(string),
    (struct sockaddr *)
    &mnt->mount_server.address,
    sizeof(mnt->mount_server.address));


    \
     
     \ /
      Last update: 2012-01-26 12:15    [W:0.023 / U:59.860 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site