summaryrefslogtreecommitdiff
path: root/net
diff options
context:
space:
mode:
authorJoe Hershberger <joe.hershberger@ni.com>2016-08-15 20:03:20 (GMT)
committerJoe Hershberger <joe.hershberger@ni.com>2016-08-22 19:20:36 (GMT)
commit6279b49e6c2fdaf8665355d1777bc90cd41fcf90 (patch)
tree419ddf37939144a0b0817d34714874746c0f7fc1 /net
parent5280c76915f45f4479d6fe5f0b5b73984de14d04 (diff)
downloadu-boot-6279b49e6c2fdaf8665355d1777bc90cd41fcf90.tar.xz
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 <joe.hershberger@ni.com>
Diffstat (limited to 'net')
-rw-r--r--net/nfs.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/nfs.h b/net/nfs.h
index 45da246..aa4e450 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;
};