mirror of
https://github.com/torvalds/linux.git
synced 2026-06-06 13:37:36 +02:00
i2c: efm32: fix a failure path in efm32_i2c_probe()
commit7dd91d52a8upstream. There is the only failure path in efm32_i2c_probe(), where clk_disable_unprepare() is missed. Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru> Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Wolfram Sang <wsa@the-dreams.de> Fixes:1b5b23718b("i2c: efm32: new bus driver") Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
31edf03971
commit
3f32fd3a3a
|
|
@ -433,7 +433,7 @@ static int efm32_i2c_probe(struct platform_device *pdev)
|
|||
ret = request_irq(ddata->irq, efm32_i2c_irq, 0, DRIVER_NAME, ddata);
|
||||
if (ret < 0) {
|
||||
dev_err(&pdev->dev, "failed to request irq (%d)\n", ret);
|
||||
return ret;
|
||||
goto err_disable_clk;
|
||||
}
|
||||
|
||||
ret = i2c_add_adapter(&ddata->adapter);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user