Skip to content

drm/rockchip: fix reference leak when pm_runtime_get_sync fails

Qinglang Miao dri-devel linux-arm-kernel linux-rockchip lkml 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3drm/rockchip: cdn-dp: fix reference leak when pm_runtime_get_sync failsdrivers/gpu/drm/rockchip/cdn-dp-core.c+1 -10 replies
2/3drm/rockchip: vop: fix reference leak when pm_runtime_get_sync failsdrivers/gpu/drm/rockchip/rockchip_drm_vop.c+2 -20 replies
3/3drm/rockchip: lvds: fix reference leak when pm_runtime_get_sync failsdrivers/gpu/drm/rockchip/rockchip_lvds.c+2 -20 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/3] drm/rockchip: fix reference leak when pm_runtime_get_sync fails

pm_runtime_get_sync will increment the PM reference count even failed. Forgetting to putting operation will result in a reference leak here.

Replace it with pm_runtime_resume_and_get to keep usage counter balanced.

BTW, pm_runtime_resume_and_get is introduced in v5.10-rc5 as dd8088d5a896 ("PM: runtime: Add pm_runtime_resume_and_get to dealwith usage counter")

Qinglang Miao (3):
drm/rockchip: cdn-dp: fix reference leak when pm_runtime_get_sync
fails
drm/rockchip: vop: fix reference leak when pm_runtime_get_sync fails drm/rockchip: lvds: fix reference leak when pm_runtime_get_sync fails

 drivers/gpu/drm/rockchip/cdn-dp-core.c      | 2 +-
 drivers/gpu/drm/rockchip/rockchip_drm_vop.c | 4 ++--
 drivers/gpu/drm/rockchip/rockchip_lvds.c    | 4 ++--
 3 files changed, 5 insertions(+), 5 deletions(-)
Signature · 7 lines
2.23.0


_______________________________________________
Linux-rockchip mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-rockchip