projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5280c76
)
net: nfs: Correct the reply data buffer size
author
Joe Hershberger
<joe.hershberger@ni.com>
Mon, 15 Aug 2016 20:03:20 +0000
(15:03 -0500)
committer
Joe Hershberger
<joe.hershberger@ni.com>
Mon, 22 Aug 2016 19:20:36 +0000
(14:20 -0500)
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>
net/nfs.h
patch
|
blob
|
history
diff --git
a/net/nfs.h
b/net/nfs.h
index 45da246aa1e1bfa6ad8d7b267ab0a41fde8e231d..aa4e450b20254adeddec88c3b84c6a7476372327 100644
(file)
--- 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;
};