Re: [PATCH v2] greybus/operation: Drop reference when message has been sent

2021-03-10 Thread Johan Hovold
On Wed, Mar 10, 2021 at 06:17:36AM -0800, Lv Yunlong wrote: > In gb_operation_response_send, get an extra reference > before gb_message_send() with this comment "/* Reference will > be dropped when message has been sent. */". Therefore, we > should drop the got reference not only in the error

[PATCH v2] greybus/operation: Drop reference when message has been sent

2021-03-10 Thread Lv Yunlong
In gb_operation_response_send, get an extra reference before gb_message_send() with this comment "/* Reference will be dropped when message has been sent. */". Therefore, we should drop the got reference not only in the error branch, but also in the complete branch. Signed-off-by: Lv Yunlong ---