projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f9a21a3
)
staging: greybus: es2: fix arpc request size
author
Rui Miguel Silva
<
[email protected]
>
Wed, 19 Oct 2016 12:44:25 +0000
(13:44 +0100)
committer
Greg Kroah-Hartman
<
[email protected]
>
Mon, 24 Oct 2016 13:48:02 +0000
(15:48 +0200)
Fix size field of arpc message request by using the header size and not
the pointer size.
Signed-off-by: Rui Miguel Silva <
[email protected]
>
Reviewed-by: Viresh Kumar <
[email protected]
>
Reviewed-by: Johan Hovold <
[email protected]
>
Signed-off-by: Greg Kroah-Hartman <
[email protected]
>
drivers/staging/greybus/es2.c
patch
|
blob
|
history
diff --git
a/drivers/staging/greybus/es2.c
b/drivers/staging/greybus/es2.c
index 8eabc713a26db55721e349fad9731760b02c0670..d7fd4a05f113525ac627efa7f4ee1d14055e4597 100644
(file)
--- a/
drivers/staging/greybus/es2.c
+++ b/
drivers/staging/greybus/es2.c
@@
-1033,7
+1033,7
@@
static struct arpc *arpc_alloc(void *payload, u16 size, u8 type)
goto err_free_req;
rpc->req->type = type;
- rpc->req->size = cpu_to_le16(sizeof(rpc->req) + size);
+ rpc->req->size = cpu_to_le16(sizeof(
*
rpc->req) + size);
memcpy(rpc->req->data, payload, size);
init_completion(&rpc->response_received);