|
@@ -1711,6 +1711,8 @@ static int nfs_validate_mount_data(void *options,
|
|
|
|
|
|
if (!(data->flags & NFS_MOUNT_TCP))
|
|
if (!(data->flags & NFS_MOUNT_TCP))
|
|
args->nfs_server.protocol = XPRT_TRANSPORT_UDP;
|
|
args->nfs_server.protocol = XPRT_TRANSPORT_UDP;
|
|
|
|
+ else
|
|
|
|
+ args->nfs_server.protocol = XPRT_TRANSPORT_TCP;
|
|
/* N.B. caller will free nfs_server.hostname in all cases */
|
|
/* N.B. caller will free nfs_server.hostname in all cases */
|
|
args->nfs_server.hostname = kstrdup(data->hostname, GFP_KERNEL);
|
|
args->nfs_server.hostname = kstrdup(data->hostname, GFP_KERNEL);
|
|
args->namlen = data->namlen;
|
|
args->namlen = data->namlen;
|