* [PATCH] i2c: efm32: fix a failure path in efm32_i2c_probe()
@ 2016-07-15 23:36 Alexey Khoroshilov
2016-07-16 8:55 ` Uwe Kleine-König
2016-07-19 4:23 ` Wolfram Sang
0 siblings, 2 replies; 3+ messages in thread
From: Alexey Khoroshilov @ 2016-07-15 23:36 UTC (permalink / raw)
To: Wolfram Sang, Uwe Kleine-König
Cc: Alexey Khoroshilov, linux-i2c, linux-arm-kernel, linux-kernel,
ldv-project
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>
---
drivers/i2c/busses/i2c-efm32.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/i2c/busses/i2c-efm32.c b/drivers/i2c/busses/i2c-efm32.c
index 8eff62738877..e253598d764c 100644
--- a/drivers/i2c/busses/i2c-efm32.c
+++ b/drivers/i2c/busses/i2c-efm32.c
@@ -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);
--
1.9.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] i2c: efm32: fix a failure path in efm32_i2c_probe()
2016-07-15 23:36 [PATCH] i2c: efm32: fix a failure path in efm32_i2c_probe() Alexey Khoroshilov
@ 2016-07-16 8:55 ` Uwe Kleine-König
2016-07-19 4:23 ` Wolfram Sang
1 sibling, 0 replies; 3+ messages in thread
From: Uwe Kleine-König @ 2016-07-16 8:55 UTC (permalink / raw)
To: Alexey Khoroshilov
Cc: Wolfram Sang, Uwe Kleine-König, linux-arm-kernel,
ldv-project, linux-i2c, linux-kernel
On Sat, Jul 16, 2016 at 02:36:38AM +0300, Alexey Khoroshilov wrote:
> 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>
oops, this is wrong since the beginning.
Fixes: 1b5b23718b84 ("i2c: efm32: new bus driver")
Acked-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Thanks
Uwe
--
Pengutronix e.K. | Uwe Kleine-König |
Industrial Linux Solutions | http://www.pengutronix.de/ |
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] i2c: efm32: fix a failure path in efm32_i2c_probe()
2016-07-15 23:36 [PATCH] i2c: efm32: fix a failure path in efm32_i2c_probe() Alexey Khoroshilov
2016-07-16 8:55 ` Uwe Kleine-König
@ 2016-07-19 4:23 ` Wolfram Sang
1 sibling, 0 replies; 3+ messages in thread
From: Wolfram Sang @ 2016-07-19 4:23 UTC (permalink / raw)
To: Alexey Khoroshilov
Cc: Uwe Kleine-König, linux-i2c, linux-arm-kernel, linux-kernel,
ldv-project
[-- Attachment #1: Type: text/plain, Size: 338 bytes --]
On Sat, Jul 16, 2016 at 02:36:38AM +0300, Alexey Khoroshilov wrote:
> 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>
Applied to for-next, thanks!
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 819 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2016-07-19 4:23 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-07-15 23:36 [PATCH] i2c: efm32: fix a failure path in efm32_i2c_probe() Alexey Khoroshilov
2016-07-16 8:55 ` Uwe Kleine-König
2016-07-19 4:23 ` Wolfram Sang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).