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: Alex Elder <elder@linaro.org>
Signed-off-by: Greg Kroah-Hartman <greg@kroah.com>
This commit is contained in:
Alex Elder 2014-12-02 17:03:51 -06:00 committed by Greg Kroah-Hartman
parent 583d233fa9
commit 6cd6ec55f4

View File

@ -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);