Commit a1f2e40b authored by Perry Hung's avatar Perry Hung Committed by Greg Kroah-Hartman

greybus: gb_operation: drop operation refcount on cancel

An extra reference is taken out on an operation in
gb_operation_request_send(). If the response never arrives, we need to
put back the reference.
Signed-off-by: default avatarPerry Hung <perry@leaflabs.com>
Tested-by: default avatarMitchell Tasman <tasman@leaflabs.com>
Reviewed-by: default avatarAlex Elder <elder@linaro.org>
Signed-off-by: default avatarGreg Kroah-Hartman <greg@kroah.com>
parent 7bad4e85
......@@ -895,6 +895,7 @@ void gb_operation_cancel(struct gb_operation *operation, int errno)
gb_message_cancel(operation->request);
gb_message_cancel(operation->response);
}
gb_operation_put(operation);
}
/**
......
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