]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd03a8b47696b2ee77de51b674a2450224065cf48
treeb8885ec9c361ec8e3e19adabe41bd02afe11e188
parent9dc86593b2a1c2b0e386d0e4e09c14f9c3cae8ef
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: 65b59d4873ed ("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