]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
NFSD: Replace READ* macros in nfsd4_decode_renew()
authorChuck Lever <chuck.lever@oracle.com>
Wed, 4 Nov 2020 20:08:50 +0000 (15:08 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 21 Jun 2024 12:52:39 +0000 (14:52 +0200)
[ Upstream commit d12f90458dc8c11734ba44ec88f109bf8de86ff0 ]

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/nfsd/nfs4xdr.c

index adf4a6fb94d4c70a259fd829cdc16151f5cf2099..51b59b369d7263cbdb59122fd409d99455585062 100644 (file)
@@ -1272,15 +1272,7 @@ nfsd4_decode_rename(struct nfsd4_compoundargs *argp, struct nfsd4_rename *rename
 static __be32
 nfsd4_decode_renew(struct nfsd4_compoundargs *argp, clientid_t *clientid)
 {
-       DECODE_HEAD;
-
-       if (argp->minorversion >= 1)
-               return nfserr_notsupp;
-
-       READ_BUF(sizeof(clientid_t));
-       COPYMEM(clientid, sizeof(clientid_t));
-
-       DECODE_TAIL;
+       return nfsd4_decode_clientid4(argp, clientid);
 }
 
 static __be32