mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-08 03:40:35 +09:00
drm/rockchip: dw_hdmi fix crash caused by null pointer
Change-Id: I7d5ada5f09d2081440d0098782df6200a83ca2b1 Signed-off-by: Jianqun Xu <jay.xu@rock-chips.com>
This commit is contained in:
@@ -1461,6 +1461,9 @@ static void dw_hdmi_rockchip_shutdown(struct platform_device *pdev)
|
||||
{
|
||||
struct rockchip_hdmi *hdmi = dev_get_drvdata(&pdev->dev);
|
||||
|
||||
if (!hdmi)
|
||||
return;
|
||||
|
||||
dw_hdmi_suspend(hdmi->hdmi);
|
||||
pm_runtime_put_sync(&pdev->dev);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user