mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-10 15:14:43 +00:00
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>
This commit is contained in:
parent
5280c76915
commit
6279b49e6c
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue