diff options
| author | Amir Samuelov <amirs@codeaurora.org> | 2017-08-31 13:34:44 +0300 |
|---|---|---|
| committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2017-09-03 03:12:59 -0700 |
| commit | b5b4f0eb8d6a851c822e000da44ebc424b23d6e1 (patch) | |
| tree | ed084bed72473226f7dce442916fdffbfdb0f946 /lib/stackdepot.c | |
| parent | 9b6345d0340d6003dc23ab695c8385b1bbd2e6b6 (diff) | |
spcom: avoid implicit casting from size_t to uint32 for file ops
spcom expose "pseudo file" char-device to user space.
The file operation callback function definition is using size_t for user
buffer size.
The spcom API uses uint32 as the spcom communication buffers are about
300 bytes, and the user space file operation read()/write() are limited to
PAGE_SIZE which is about 4KB.
Use explicit casting rather than implicit casting when fops callbacks
calls spcom internal functions.
CRs-Fixed: 2025174
Change-Id: I5d6bf71ab77f97ea350178bb8b3473fd4cefddfd
Signed-off-by: Amir Samuelov <amirs@codeaurora.org>
Diffstat (limited to 'lib/stackdepot.c')
0 files changed, 0 insertions, 0 deletions
