NFSv4.2: fix copy stateid copying for the async copy
authorOlga Kornievskaia <kolga@netapp.com>
Tue, 30 Mar 2021 19:03:59 +0000 (15:03 -0400)
committerChuck Lever <chuck.lever@oracle.com>
Thu, 1 Apr 2021 13:36:31 +0000 (09:36 -0400)
commite739b12042b6b079a397a3c234f96c09d1de0b40
treeb8885ec9c361ec8e3e19adabe41bd02afe11e188
parentc0a744dcaa29e9537e8607ae9c965ad936124a4d
NFSv4.2: fix copy stateid copying for the async copy

This patch fixes Dan Carpenter's report that the static checker
found a problem where memcpy() was copying into too small of a buffer.

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Fixes: e0639dc5805a ("NFSD introduce async copy feature")
Signed-off-by: Olga Kornievskaia <kolga@netapp.com>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Reviewed-by: Dai Ngo <dai.ngo@oracle.com>
fs/nfsd/nfs4proc.c