NFSD: Replace READ* macros in nfsd4_decode_lookup()
[ Upstream commit 3d5877e8e03f60d7cc804d7b230ff9c00c9c07bd ] Signed-off-by: Chuck Lever <chuck.lever@oracle.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
340878b2e0
commit
def95074db
@ -931,16 +931,7 @@ nfsd4_decode_locku(struct nfsd4_compoundargs *argp, struct nfsd4_locku *locku)
|
||||
static __be32
|
||||
nfsd4_decode_lookup(struct nfsd4_compoundargs *argp, struct nfsd4_lookup *lookup)
|
||||
{
|
||||
DECODE_HEAD;
|
||||
|
||||
READ_BUF(4);
|
||||
lookup->lo_len = be32_to_cpup(p++);
|
||||
READ_BUF(lookup->lo_len);
|
||||
SAVEMEM(lookup->lo_name, lookup->lo_len);
|
||||
if ((status = check_filename(lookup->lo_name, lookup->lo_len)))
|
||||
return status;
|
||||
|
||||
DECODE_TAIL;
|
||||
return nfsd4_decode_component4(argp, &lookup->lo_name, &lookup->lo_len);
|
||||
}
|
||||
|
||||
static __be32 nfsd4_decode_share_access(struct nfsd4_compoundargs *argp, u32 *share_access, u32 *deleg_want, u32 *deleg_when)
|
||||
|
Loading…
x
Reference in New Issue
Block a user