summaryrefslogtreecommitdiff
path: root/kernel/padata.c
diff options
context:
space:
mode:
authorAnandu Krishnan E <anandu.e@oss.qualcomm.com>2026-05-25 14:23:40 +0530
committerSrinivas Kandagatla <srini@kernel.org>2026-07-01 22:18:51 +0100
commit10021b2008861ed22a1a0abb774620d283293754 (patch)
tree4f5332b2e052e067036262683e1e8f9c01f1471e /kernel/padata.c
parent064ad2c7c7ef3f60d2f8fff56f6d247f4fdeb75b (diff)
downloadlinux-next-10021b2008861ed22a1a0abb774620d283293754.tar.gz
linux-next-10021b2008861ed22a1a0abb774620d283293754.zip
misc: fastrpc: fix channel ctx ref leak when session alloc fails
fastrpc_channel_ctx_get() is called in fastrpc_device_open() before fastrpc_session_alloc(). If session alloc fails, the error path returns -EBUSY without calling fastrpc_channel_ctx_put(), leaking the reference. Fix by adding the missing put. Fixes: 278d56f970ae ("misc: fastrpc: Reference count channel context") Cc: stable@kernel.org Signed-off-by: Anandu Krishnan E <anandu.e@oss.qualcomm.com> Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@oss.qualcomm.com> Signed-off-by: Srinivas Kandagatla <srini@kernel.org>
Diffstat (limited to 'kernel/padata.c')
0 files changed, 0 insertions, 0 deletions