linux/drivers/gpu/drm/lima
Qinglang Miao 141c939224 drm/lima: fix reference leak in lima_pm_busy
[ Upstream commit de4248b744 ]

pm_runtime_get_sync will increment pm usage counter even it
failed. Forgetting to putting operation will result in a
reference leak here.

A new function pm_runtime_resume_and_get is introduced in
[0] to keep usage counter balanced. So We fix the reference
leak by replacing it with new function.

[0] commit dd8088d5a8 ("PM: runtime: Add  pm_runtime_resume_and_get to deal with usage counter")

Fixes: 50de2e9ebb ("drm/lima: enable runtime pm")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Qinglang Miao <miaoqinglang@huawei.com>
Signed-off-by: Qiang Yu <yuq825@gmail.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20201127094438.121003-1-miaoqinglang@huawei.com
(cherry picked from commit de499781c9)
Signed-off-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2021-03-04 11:37:49 +01:00
..
Kconfig
lima_bcast.c
lima_bcast.h
lima_ctx.c
lima_ctx.h
lima_devfreq.c
lima_devfreq.h
lima_device.c
lima_device.h
lima_dlbu.c
lima_dlbu.h
lima_drv.c
lima_drv.h
lima_dump.h
lima_gem.c drm: lima: fix common struct sg_table related issues 2020-09-10 08:18:35 +02:00
lima_gem.h
lima_gp.c
lima_gp.h
lima_l2_cache.c
lima_l2_cache.h
lima_mmu.c
lima_mmu.h
lima_pmu.c
lima_pmu.h
lima_pp.c drm/lima: fix wait pp reset timeout 2020-07-20 08:46:06 +08:00
lima_pp.h
lima_regs.h
lima_sched.c drm/lima: fix reference leak in lima_pm_busy 2021-03-04 11:37:49 +01:00
lima_sched.h
lima_trace.c
lima_trace.h
lima_vm.c drm: lima: fix common struct sg_table related issues 2020-09-10 08:18:35 +02:00
lima_vm.h
Makefile