mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-25 06:03:36 -04:00
greybus: operation: fix endian issue in the operation message header size field.
This commit is contained in:
parent
ad1c449eb9
commit
322543a335
1 changed files with 1 additions and 1 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Reference in a new issue