mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-12 05:48:40 +00:00
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:
parent
583d233fa9
commit
6cd6ec55f4
1 changed files with 1 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue