summaryrefslogtreecommitdiff
path: root/rust/kernel/alloc/allocator
diff options
context:
space:
mode:
authorWentao Liang <vulab@iscas.ac.cn>2026-06-08 07:11:23 +0000
committerAndi Shyti <andi.shyti@kernel.org>2026-06-08 17:35:03 +0200
commit9c37eac31c559b079d55890d1dbe70072fec0435 (patch)
treee9134e8aa3de464e19ffe3105f62b5fd190e78f9 /rust/kernel/alloc/allocator
parent4549871118cf616eecdd2d939f78e3b9e1dddc48 (diff)
i2c: riic: fix refcount leak in riic_i2c_resume_noirq()
When riic_i2c_resume_noirq() is called, it deasserts the reset using reset_control_deassert(), which for shared resets increments a reference count. If pm_runtime_force_resume() then fails, the function returns without calling reset_control_assert() to decrement the count. This leaves the reset deasserted and the reference count unbalanced, which can prevent other users of the shared reset from properly asserting it later. Fix the leak by calling reset_control_assert() on the error handling path for a failed pm_runtime_force_resume(). Fixes: e383f0961422 ("i2c: riic: Move suspend handling to NOIRQ phase") Signed-off-by: Wentao Liang <vulab@iscas.ac.cn> Cc: <stable@vger.kernel.org> # v6.19+ Reviewed-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Andi Shyti <andi.shyti@kernel.org> Link: https://lore.kernel.org/r/20260608071123.128964-1-vulab@iscas.ac.cn
Diffstat (limited to 'rust/kernel/alloc/allocator')
0 files changed, 0 insertions, 0 deletions