greybus: operation: fix endian issue in the operation message header size field.

This commit is contained in:
Greg Kroah-Hartman 2014-10-02 21:25:21 -07:00
parent ad1c449eb9
commit 322543a335

View File

@ -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 */