projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ad1c449
)
greybus: operation: fix endian issue in the operation message header size field.
author
Greg Kroah-Hartman
<greg@kroah.com>
Fri, 3 Oct 2014 04:25:21 +0000
(21:25 -0700)
committer
Greg Kroah-Hartman
<greg@kroah.com>
Fri, 3 Oct 2014 04:25:21 +0000
(21:25 -0700)
drivers/staging/greybus/operation.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/staging/greybus/operation.c
b/drivers/staging/greybus/operation.c
index b930d24ce552fd02719078620d653fe3d2bc9eda..fe2f1a7137e5544eacd295b59c8545244e18c190 100644
(file)
--- a/
drivers/staging/greybus/operation.c
+++ b/
drivers/staging/greybus/operation.c
@@
-139,7
+139,7
@@
struct gb_operation *gb_operation_create(struct gb_connection *connection,
operation->gbuf = gbuf;
header = (struct gb_operation_msg_hdr *)&gbuf->transfer_buffer;
header->id = 0;
- header->size =
size
;
+ header->size =
cpu_to_le16(size)
;
operation->payload = (char *)header + sizeof(*header);
operation->callback = NULL; /* set at submit time */