NFSD: Replace READ* macros in nfsd4_decode_secinfo()
[ Upstream commit d0abdae5191a916d767164f6fc6c0e2e814a20a7 ] Signed-off-by: Chuck Lever <chuck.lever@oracle.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
4e3cc691f3
commit
a9fde57f85
1 changed files with 1 additions and 10 deletions
|
@ -1279,16 +1279,7 @@ static __be32
|
|||
nfsd4_decode_secinfo(struct nfsd4_compoundargs *argp,
|
||||
struct nfsd4_secinfo *secinfo)
|
||||
{
|
||||
DECODE_HEAD;
|
||||
|
||||
READ_BUF(4);
|
||||
secinfo->si_namelen = be32_to_cpup(p++);
|
||||
READ_BUF(secinfo->si_namelen);
|
||||
SAVEMEM(secinfo->si_name, secinfo->si_namelen);
|
||||
status = check_filename(secinfo->si_name, secinfo->si_namelen);
|
||||
if (status)
|
||||
return status;
|
||||
DECODE_TAIL;
|
||||
return nfsd4_decode_component4(argp, &secinfo->si_name, &secinfo->si_namelen);
|
||||
}
|
||||
|
||||
static __be32
|
||||
|
|
Loading…
Add table
Reference in a new issue