Re: [PATCH] misc: fastrpc: fix potential fastrpc_invoke_ctx leak

2020-05-12 Thread Srinivas Kandagatla
On 12/05/2020 02:18, Bjorn Andersson wrote: On Mon 11 May 09:29 PDT 2020, Srinivas Kandagatla wrote: fastrpc_invoke_ctx can have refcount of 2 in error path where rpmsg_send() fails to send invoke message. decrement the refcount properly in the error path to fix this leak. This also fixes b

Re: [PATCH] misc: fastrpc: fix potential fastrpc_invoke_ctx leak

2020-05-11 Thread Bjorn Andersson
On Mon 11 May 09:29 PDT 2020, Srinivas Kandagatla wrote: > fastrpc_invoke_ctx can have refcount of 2 in error path where > rpmsg_send() fails to send invoke message. decrement the refcount > properly in the error path to fix this leak. > > This also fixes below static checker warning: > > driver

[PATCH] misc: fastrpc: fix potential fastrpc_invoke_ctx leak

2020-05-11 Thread Srinivas Kandagatla
fastrpc_invoke_ctx can have refcount of 2 in error path where rpmsg_send() fails to send invoke message. decrement the refcount properly in the error path to fix this leak. This also fixes below static checker warning: drivers/misc/fastrpc.c:990 fastrpc_internal_invoke() warn: 'ctx->refcount.refc