mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-20 10:44:23 +08:00
drm/rockchip: Balance irq refcount on failure
If create_crtc fails in vop bind, ensure the irq refcount is zeroed back out before exiting. Reviewed-by: Daniel Kurtz <djkurtz@chromium.org> Signed-off-by: Sean Paul <seanpaul@chromium.org>
This commit is contained in:
parent
d47a7246bb
commit
8c763c9b10
@ -1547,11 +1547,15 @@ static int vop_bind(struct device *dev, struct device *master, void *data)
|
|||||||
|
|
||||||
ret = vop_create_crtc(vop);
|
ret = vop_create_crtc(vop);
|
||||||
if (ret)
|
if (ret)
|
||||||
return ret;
|
goto err_enable_irq;
|
||||||
|
|
||||||
pm_runtime_enable(&pdev->dev);
|
pm_runtime_enable(&pdev->dev);
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
|
err_enable_irq:
|
||||||
|
enable_irq(vop->irq); /* To balance out the disable_irq above */
|
||||||
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
static void vop_unbind(struct device *dev, struct device *master, void *data)
|
static void vop_unbind(struct device *dev, struct device *master, void *data)
|
||||||
|
Loading…
Reference in New Issue
Block a user