kmb_probe() installs the LCD IRQ handler before calling
drm_dev_register(). If registration fails, the error path stops
polling and cleans up the display resources without uninstalling
the handler.

Call kmb_irq_uninstall() in the registration error path

Fixes: 58889cdc39cf ("drm/kmb: Convert to Linux IRQ interfaces")
Signed-off-by: Haoxiang Li <[email protected]>
---
 drivers/gpu/drm/kmb/kmb_drv.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/gpu/drm/kmb/kmb_drv.c b/drivers/gpu/drm/kmb/kmb_drv.c
index 7c2eb1152fc2..d8e2fc28ee9e 100644
--- a/drivers/gpu/drm/kmb/kmb_drv.c
+++ b/drivers/gpu/drm/kmb/kmb_drv.c
@@ -569,6 +569,7 @@ static int kmb_probe(struct platform_device *pdev)
 
  err_register:
        drm_kms_helper_poll_fini(&kmb->drm);
+       kmb_irq_uninstall(&kmb->drm);
  err_irq:
        pm_runtime_disable(kmb->drm.dev);
  err_free:
-- 
2.25.1

Reply via email to