<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">2013/5/21 Lars-Peter Clausen <span dir="ltr"><<a href="mailto:lars@metafoo.de" target="_blank">lars@metafoo.de</a>></span><br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
free_irq() expects the same pointer that was passed to request_threaded_irq(),<br>
otherwise the IRQ is not freed.<br>
<br>
The issue was found using the following coccinelle script:<br>
<br>
<smpl><br>
@r1@<br>
type T;<br>
T devid;<br>
@@<br>
request_threaded_irq(..., devid)<br>
<br>
@r2@<br>
type r1.T;<br>
T devid;<br>
position p;<br>
@@<br>
free_irq@p(..., devid)<br>
<br>
@@<br>
position p != r2.p;<br>
@@<br>
*free_irq@p(...)<br>
</smpl><br>
<br>
Signed-off-by: Lars-Peter Clausen <<a href="mailto:lars@metafoo.de">lars@metafoo.de</a>><br>
---<br>
drivers/gpu/drm/exynos/exynos_hdmi.c | 2 +-<br>
1 file changed, 1 insertion(+), 1 deletion(-)<br>
<br>
diff --git a/drivers/gpu/drm/exynos/exynos_hdmi.c b/drivers/gpu/drm/exynos/exynos_hdmi.c<br>
index bbfc384..7e99853 100644<br>
--- a/drivers/gpu/drm/exynos/exynos_hdmi.c<br>
+++ b/drivers/gpu/drm/exynos/exynos_hdmi.c<br>
@@ -2082,7 +2082,7 @@ static int hdmi_remove(struct platform_device *pdev)<br>
<br>
pm_runtime_disable(dev);<br>
<br>
- free_irq(hdata->irq, hdata);<br>
+ free_irq(hdata->irq, ctx);<br>
<br></blockquote><div><br><div>It's better to use devm_reqeust_irq instead. Anyway that was a bug. Applied.<br></div><div><br></div>Thanks,<br>Inki Dae<br> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
/* hdmiphy i2c driver */<br>
<span class=""><font color="#888888">--<br>
1.8.0<br>
<br>
_______________________________________________<br>
dri-devel mailing list<br>
<a href="mailto:dri-devel@lists.freedesktop.org">dri-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/dri-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/dri-devel</a><br>
</font></span></blockquote></div><br></div></div>