提交 a1f2e40b 编写于 作者: P Perry Hung 提交者: 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: NPerry Hung <perry@leaflabs.com>
Tested-by: NMitchell Tasman <tasman@leaflabs.com>
Reviewed-by: NAlex Elder <elder@linaro.org>
Signed-off-by: NGreg Kroah-Hartman <greg@kroah.com>
上级 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% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册