mirror of
https://github.com/torvalds/linux.git
synced 2024-11-29 23:51:37 +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
@ -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 New Issue
Block a user