From 470a717a5f70c4486f79e901bcf61c282fc89fe7 Mon Sep 17 00:00:00 2001 From: Chuck Lever Date: Thu, 26 Jun 2008 17:47:05 -0400 Subject: [PATCH] --- yaml --- r: 101946 b: refs/heads/master c: ed596a8adb7964cf9d2f7682f9cf2c37322a775d h: refs/heads/master v: v3 --- [refs] | 2 +- trunk/fs/nfs/super.c | 9 ++++++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/[refs] b/[refs] index a92f3639f83e..33932e0943fc 100644 --- a/[refs] +++ b/[refs] @@ -1,2 +1,2 @@ --- -refs/heads/master: 259875efed06d6936f54c9a264e868937f1bc217 +refs/heads/master: ed596a8adb7964cf9d2f7682f9cf2c37322a775d diff --git a/trunk/fs/nfs/super.c b/trunk/fs/nfs/super.c index 9c1a960f5b94..de424d2f3155 100644 --- a/trunk/fs/nfs/super.c +++ b/trunk/fs/nfs/super.c @@ -1214,9 +1214,6 @@ static int nfs_parse_mount_options(char *raw, } } - nfs_set_port((struct sockaddr *)&mnt->nfs_server.address, - mnt->nfs_server.port); - return 1; out_nomem: @@ -1568,6 +1565,9 @@ static int nfs_validate_mount_data(void *options, &args->nfs_server.address)) goto out_no_address; + nfs_set_port((struct sockaddr *)&args->nfs_server.address, + args->nfs_server.port); + nfs_set_mount_transport_protocol(args); status = nfs_parse_devname(dev_name, @@ -2197,6 +2197,9 @@ static int nfs4_validate_mount_data(void *options, &args->nfs_server.address)) return -EINVAL; + nfs_set_port((struct sockaddr *)&args->nfs_server.address, + args->nfs_server.port); + nfs_validate_transport_protocol(args); switch (args->auth_flavor_len) {