NFSD: Replace READ* macros in nfsd4_decode_link()
[ Upstream commit 5c505d128691c70991b766dd6a3faf49fa59ecfb ] Signed-off-by: Chuck Lever <chuck.lever@oracle.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:

committed by
Greg Kroah-Hartman

parent
42c4437d78
commit
84bc365eee
@@ -779,16 +779,7 @@ nfsd4_decode_getattr(struct nfsd4_compoundargs *argp, struct nfsd4_getattr *geta
|
|||||||
static __be32
|
static __be32
|
||||||
nfsd4_decode_link(struct nfsd4_compoundargs *argp, struct nfsd4_link *link)
|
nfsd4_decode_link(struct nfsd4_compoundargs *argp, struct nfsd4_link *link)
|
||||||
{
|
{
|
||||||
DECODE_HEAD;
|
return nfsd4_decode_component4(argp, &link->li_name, &link->li_namelen);
|
||||||
|
|
||||||
READ_BUF(4);
|
|
||||||
link->li_namelen = be32_to_cpup(p++);
|
|
||||||
READ_BUF(link->li_namelen);
|
|
||||||
SAVEMEM(link->li_name, link->li_namelen);
|
|
||||||
if ((status = check_filename(link->li_name, link->li_namelen)))
|
|
||||||
return status;
|
|
||||||
|
|
||||||
DECODE_TAIL;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static __be32
|
static __be32
|
||||||
|
Reference in New Issue
Block a user