]> Gentwo Git Trees - linux/.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)
committerAndi Shyti <andi.shyti@kernel.org>
Tue, 18 Feb 2025 22:18:55 +0000 (23:18 +0100)
commit3034688ef9a87f38922b485d6907a26a6c575f11
treef11a6f36f1fc0853d54b890cff31729e370f8d05
parentfacb87377cfe7894a853d0222bc26a5bb079ca58
i2c: pxa: fix call balance of i2c->clk handling routines

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
drivers/i2c/busses/i2c-pxa.c