]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
i2c: pxa: fix call balance of i2c->clk handling routines
authorVitalii Mordan <mordan@ispras.ru>
Wed, 12 Feb 2025 17:28:03 +0000 (20:28 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 4 Jun 2025 12:41:56 +0000 (14:41 +0200)
commita4666a812792d273aa1fcf9ac1d48dc65d338520
tree242e0cfe8277a8133a441165003f36ef888bdf40
parent4fc8e3fb8efa83d85d5afed4f88298adf6bac67d
i2c: pxa: fix call balance of i2c->clk handling routines

[ Upstream commit be7113d2e2a6f20cbee99c98d261a1fd6fd7b549 ]

If the clock i2c->clk was not enabled in i2c_pxa_probe(), it should not be
disabled in any path.

Found by Linux Verification Center (linuxtesting.org) with Klever.

Signed-off-by: Vitalii Mordan <mordan@ispras.ru>
Signed-off-by: Andi Shyti <andi.shyti@kernel.org>
Link: https://lore.kernel.org/r/20250212172803.1422136-1-mordan@ispras.ru
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/i2c/busses/i2c-pxa.c