diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c index 464db0c0f5c8..ff98e2a3f3cc 100644 --- a/fs/nfs/nfs4proc.c +++ b/fs/nfs/nfs4proc.c @@ -7734,7 +7734,7 @@ static int nfs4_sp4_select_mode(struct nfs_client *clp, } out: clp->cl_sp4_flags = flags; - return 0; + return ret; } struct nfs41_exchange_id_data {