From: Joe Hershberger Date: Mon, 15 Aug 2016 20:03:20 +0000 (-0500) Subject: net: nfs: Correct the reply data buffer size X-Git-Tag: v2016.09~76^2~13 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=6279b49e6c2fdaf8665355d1777bc90cd41fcf90;p=oweals%2Fu-boot.git net: nfs: Correct the reply data buffer size The type of the buffer is uint32_t, but the parameter used to size it is referring to bytes. Divide by the size of the array elements. Strictly speaking, this shouldn't be needed at all... It could just be 1 just like the request. Signed-off-by: Joe Hershberger --- diff --git a/net/nfs.h b/net/nfs.h index 45da246aa1..aa4e450b20 100644 --- a/net/nfs.h +++ b/net/nfs.h @@ -76,7 +76,7 @@ struct rpc_t { uint32_t verifier; uint32_t v2; uint32_t astatus; - uint32_t data[NFS_READ_SIZE]; + uint32_t data[NFS_READ_SIZE / sizeof(uint32_t)]; } reply; } u; };