mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 03:15:31 +09:00
greybus: operation: fix endian issue in the operation message header size field.
This commit is contained in:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user