mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-17 05:45:20 +00:00
NFSD: Replace READ* macros in nfsd4_decode_link()
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
This commit is contained in:
parent
f759eff260
commit
5c505d1286
@ -779,16 +779,7 @@ nfsd4_decode_getattr(struct nfsd4_compoundargs *argp, struct nfsd4_getattr *geta
|
||||
static __be32
|
||||
nfsd4_decode_link(struct nfsd4_compoundargs *argp, struct nfsd4_link *link)
|
||||
{
|
||||
DECODE_HEAD;
|
||||
|
||||
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;
|
||||
return nfsd4_decode_component4(argp, &link->li_name, &link->li_namelen);
|
||||
}
|
||||
|
||||
static __be32
|
||||
|
Loading…
x
Reference in New Issue
Block a user