|
@@ -1643,6 +1643,8 @@ static int nfs4_validate_mount_data(void *options,
|
|
|
if (nfs_parse_mount_options((char *)options, args) == 0)
|
|
if (nfs_parse_mount_options((char *)options, args) == 0)
|
|
|
return -EINVAL;
|
|
return -EINVAL;
|
|
|
|
|
|
|
|
|
|
+ if (args->nfs_server.address.sin_port == 0)
|
|
|
|
|
+ args->nfs_server.address.sin_port = htons(NFS_PORT);
|
|
|
if (!nfs_verify_server_address((struct sockaddr *)
|
|
if (!nfs_verify_server_address((struct sockaddr *)
|
|
|
&args->nfs_server.address))
|
|
&args->nfs_server.address))
|
|
|
return -EINVAL;
|
|
return -EINVAL;
|