From: Wei Yongjun Date: Thu, 2 Aug 2018 05:42:04 +0000 (+0000) Subject: NFSv4: Fix error handling in nfs4_sp4_select_mode() X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=72bf75cfc00c02aa66ef6133048f37aa5d88825c;p=linux.git NFSv4: Fix error handling in nfs4_sp4_select_mode() Error code is set in the error handling cases but never used. Fix it. Fixes: 937e3133cd0b ("NFSv4.1: Ensure we clear the SP4_MACH_CRED flags in nfs4_sp4_select_mode()") Signed-off-by: Wei Yongjun Signed-off-by: Anna Schumaker --- diff --git a/fs/nfs/nfs4proc.c b/fs/nfs/nfs4proc.c index 68788f0224615..124a9f97c3668 100644 --- a/fs/nfs/nfs4proc.c +++ b/fs/nfs/nfs4proc.c @@ -7793,7 +7793,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 {