Commit 322543a3 authored by Greg Kroah-Hartman's avatar Greg Kroah-Hartman

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

parent ad1c449e
...@@ -139,7 +139,7 @@ struct gb_operation *gb_operation_create(struct gb_connection *connection, ...@@ -139,7 +139,7 @@ struct gb_operation *gb_operation_create(struct gb_connection *connection,
operation->gbuf = gbuf; operation->gbuf = gbuf;
header = (struct gb_operation_msg_hdr *)&gbuf->transfer_buffer; header = (struct gb_operation_msg_hdr *)&gbuf->transfer_buffer;
header->id = 0; header->id = 0;
header->size = size; header->size = cpu_to_le16(size);
operation->payload = (char *)header + sizeof(*header); operation->payload = (char *)header + sizeof(*header);
operation->callback = NULL; /* set at submit time */ operation->callback = NULL; /* set at submit time */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment