Commit 6cd6ec55 authored by Alex Elder's avatar Alex Elder Committed by Greg Kroah-Hartman

greybus: fix a bug in gb_operation_sync()

The memcpy of request data into the request payload was
copying the data into the wrong location.  Fix that.
Signed-off-by: default avatarAlex Elder <elder@linaro.org>
Signed-off-by: default avatarGreg Kroah-Hartman <greg@kroah.com>
parent 583d233f
......@@ -935,7 +935,7 @@ int gb_operation_sync(struct gb_connection *connection, int type,
return -ENOMEM;
if (request_size)
memcpy(&operation->request->payload, request, request_size);
memcpy(operation->request->payload, request, request_size);
/* Synchronous operation--no callback */
ret = gb_operation_request_send(operation, NULL);
......
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