mirror_ubuntu-kernels/drivers/gpu/drm/msm
Miaoqian Lin c56de48309 drm/msm/a6xx: Fix refcount leak in a6xx_gpu_init
of_parse_phandle() returns a node pointer with refcount
incremented, we should use of_node_put() on it when not need anymore.

a6xx_gmu_init() passes the node to of_find_device_by_node()
and of_dma_configure(), of_find_device_by_node() will takes its
reference, of_dma_configure() doesn't need the node after usage.

Add missing of_node_put() to avoid refcount leak.

Fixes: 4b565ca5a2 ("drm/msm: Add A6XX device support")
Signed-off-by: Miaoqian Lin <linmq006@gmail.com>
Reviewed-by: Akhil P Oommen <quic_akhilpo@quicinc.com>
Link: https://lore.kernel.org/r/20220512121955.56937-1-linmq006@gmail.com
Signed-off-by: Rob Clark <robdclark@chromium.org>
2022-05-18 10:54:39 -07:00
..
adreno drm/msm/a6xx: Fix refcount leak in a6xx_gpu_init 2022-05-18 10:54:39 -07:00
disp drm/msm/dpu: remove NULL-ness check in dpu_hw_intr_destroy 2022-05-07 09:56:42 -07:00
dp drm/msm/dp: fix event thread stuck in wait_event after kthread_stop() 2022-05-07 02:10:35 +03:00
dsi drm/msm/dsi: don't powerup at modeset time for parade-ps8640 2022-05-18 10:51:42 -07:00
hdmi drm/msm/hdmi: fix error check return value of irq_of_parse_and_map() 2022-05-02 02:39:34 +03:00
Kconfig drm/msm: select DRM_DP_AUX_BUS for the AUX bus support 2022-05-02 02:39:23 +03:00
Makefile drm/msm/dpu: add the writeback connector layer 2022-05-02 02:13:00 +03:00
msm_atomic_trace.h
msm_atomic_tracepoints.c
msm_atomic.c drm/msm: Avoid dirtyfb stalls on video mode displays (v2) 2022-02-25 07:59:58 -08:00
msm_debugfs.c drm/msm: replace DEFINE_SIMPLE_ATTRIBUTE with DEFINE_DEBUGFS_ATTRIBUTE 2022-02-18 18:32:52 +03:00
msm_debugfs.h
msm_drv.c drm/msm: add missing include to msm_drv.c 2022-05-02 02:39:35 +03:00
msm_drv.h drm/msm/dp: remove extra wrappers and public functions 2022-05-02 02:13:01 +03:00
msm_fb.c drm/msm: Drop msm_gem_iova() 2022-04-21 15:03:11 -07:00
msm_fbdev.c drm/msm: Remove unnecessary struct_mutex 2021-11-28 09:50:33 -08:00
msm_fence.c drm/msm/gem: Add fenced vma unpin 2022-04-21 15:03:12 -07:00
msm_fence.h drm/msm/gem: Add fenced vma unpin 2022-04-21 15:03:12 -07:00
msm_gem_prime.c drm/msm: return an error pointer in msm_gem_prime_get_sg_table() 2022-05-07 02:10:35 +03:00
msm_gem_shrinker.c treewide: Add missing includes masked by cgroup -> bpf dependency 2021-12-03 10:58:13 -08:00
msm_gem_submit.c drm/msm: Limit command submission when no IOMMU 2022-05-07 09:56:42 -07:00
msm_gem_vma.c drm/msm: Add a way for userspace to allocate GPU iova 2022-04-21 15:03:12 -07:00
msm_gem.c drm/msm: Add a way for userspace to allocate GPU iova 2022-04-21 15:03:12 -07:00
msm_gem.h drm/msm: Add a way for userspace to allocate GPU iova 2022-04-21 15:03:12 -07:00
msm_gpu_devfreq.c drm/msm: return the average load over the polling period 2022-04-21 15:05:23 -07:00
msm_gpu_trace.h drm/msm: Support evicting GEM objects to swap 2021-04-07 11:05:48 -07:00
msm_gpu_tracepoints.c
msm_gpu.c drm/msm: Fix null pointer dereferences without iommu 2022-05-02 10:11:44 -07:00
msm_gpu.h drm/msm: return the average load over the polling period 2022-04-21 15:05:23 -07:00
msm_gpummu.c drm/msm: devcoredump iommu fault support 2021-06-23 07:33:55 -07:00
msm_io_utils.c drm/msm: move utility functions from msm_drv.c 2022-02-18 18:32:52 +03:00
msm_iommu.c drm/msm: Fix display fault handling 2021-07-27 08:14:55 -07:00
msm_kms.h drm/msm: make mdp5/dpu devices master components 2022-04-26 00:50:46 +03:00
msm_mdss.c drm/msm: Fix shutdown 2022-05-07 02:10:35 +03:00
msm_mmu.h drm/msm: devcoredump iommu fault support 2021-06-23 07:33:55 -07:00
msm_perf.c drm/msm: Remove struct_mutex usage 2021-11-28 09:50:33 -08:00
msm_rd.c drm/msm: Add support for pointer params 2022-04-21 15:01:08 -07:00
msm_ringbuffer.c drm/msm: change msm_sched_ops from global to static 2022-04-27 10:50:22 +03:00
msm_ringbuffer.h drm/msm/gpu: Drop duplicate fence counter 2022-04-21 15:03:11 -07:00
msm_submitqueue.c drm/msm: Add a way to override processes comm/cmdline 2022-04-21 15:01:09 -07:00
NOTES