diff options
| author | Srinivas Kandagatla <[email protected]> | 2020-05-12 12:09:30 +0100 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2020-05-15 16:21:08 +0200 |
| commit | 74003385cf716f1b88cc7753ca282f5493f204a2 (patch) | |
| tree | aaea188e33a9da5f4e3247c96e131e4ad82bd26a /tools/perf/scripts/python/bin | |
| parent | 0978de9fc7335c73934ab8fac189fb4cb3f23191 (diff) | |
misc: fastrpc: fix potential fastrpc_invoke_ctx leak
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.refcount.ref.counter' not decremented on lines: 990.
Fixes: c68cfb718c8f ("misc: fastrpc: Add support for context")
Reported-by: Dan Carpenter <[email protected]>
Signed-off-by: Srinivas Kandagatla <[email protected]>
Reviewed-by: Bjorn Andersson <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions