summaryrefslogtreecommitdiff
path: root/net/sunrpc/xdr.c
diff options
context:
space:
mode:
authorChuck Lever <chuck.lever@oracle.com>2022-09-13 00:23:02 +0300
committerChuck Lever <chuck.lever@oracle.com>2022-09-26 21:02:47 +0300
commitc3d2a04f05c590303c125a176e6e43df4a436fdb (patch)
tree995ce809b300e61dba28a7c5ab72cbede54975b9 /net/sunrpc/xdr.c
parent98124f5bd6c76699d514fbe491dd95265369cc99 (diff)
downloadlinux-c3d2a04f05c590303c125a176e6e43df4a436fdb.tar.xz
NFSD: Use xdr_inline_decode() to decode NFSv3 symlinks
Replace the check for buffer over/underflow with a helper that is commonly used for this purpose. The helper also sets xdr->nwords correctly after successfully linearizing the symlink argument into the stream's scratch buffer. Reviewed-by: Jeff Layton <jlayton@kernel.org> Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Diffstat (limited to 'net/sunrpc/xdr.c')
0 files changed, 0 insertions, 0 deletions