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

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
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);