summaryrefslogtreecommitdiff
path: root/scripts/objdiff
diff options
context:
space:
mode:
authorRuoyu Wang <ruoyuw560@gmail.com>2026-08-13 23:31:55 +0800
committerAndi Shyti <andi.shyti@kernel.org>2026-08-14 23:41:14 +0200
commit2ce8c58ee70075fc25d806434b80709680a1c0f4 (patch)
tree2a312a2a0f71bc075f4926d3b8af7591e91e0b72 /scripts/objdiff
parentad16085eefa67595d6714132238d3a1c970771ae (diff)
downloadlinux-next-2ce8c58ee70075fc25d806434b80709680a1c0f4.tar.gz
linux-next-2ce8c58ee70075fc25d806434b80709680a1c0f4.zip
i2c: ocores: Disable clock on failed resume
ocores_i2c_resume() enables the controller clock before reinitializing the hardware. If the clock rate changed while the device was suspended, ocores_init() may reject the resulting prescaler. The callback then returns an error with the clock still enabled, while the controller itself remains disabled. Disable and unprepare the clock when ocores_init() fails so the failed resume path balances the successful clk_prepare_enable() call. This issue was found by a static analysis checker and confirmed by manual source review. Fixes: e961a094afe0 ("i2c: ocores: add common clock support") Signed-off-by: Ruoyu Wang <ruoyuw560@gmail.com> Reviewed-by: Max Filippov <jcmvbkbc@gmail.com> Signed-off-by: Andi Shyti <andi.shyti@kernel.org> Link: https://patch.msgid.link/20260813153155.3953577-1-ruoyuw560@gmail.com
Diffstat (limited to 'scripts/objdiff')
0 files changed, 0 insertions, 0 deletions