[PATCH 0/2] drm/omap: hdmi: fix reference leak in error handling

Zhang Qilong zhangqilong3 at huawei.com
Fri Nov 6 08:11:52 UTC 2020


pm_runtime_get_sync will increment pm usage counter even it failed.
Forgetting to pm_runtime_put_noidle will result in reference leak.
This two patches try to fix them in hdmi_runtime_get.

Zhang Qilong (2):
  drm/omap: hdmi4: fix reference leak in hdmi_runtime_get
  drm/omap: hdmi5: fix reference leak in hdmi_runtime_get

 drivers/gpu/drm/omapdrm/dss/hdmi4.c | 4 +++-
 drivers/gpu/drm/omapdrm/dss/hdmi5.c | 4 +++-
 2 files changed, 6 insertions(+), 2 deletions(-)

-- 
2.25.4



More information about the dri-devel mailing list