mirror_ubuntu-kernels/drivers/gpu/drm/msm
Christophe JAILLET 6977cc89c8 drm/msm/dsi: Fix some reference counted resource leaks
'of_find_device_by_node()' takes a reference that must be released when
not needed anymore.
This is expected to be done in 'dsi_destroy()'.

However, there are 2 issues in 'dsi_get_phy()'.

First, if 'of_find_device_by_node()' succeeds but 'platform_get_drvdata()'
returns NULL, 'msm_dsi->phy_dev' will still be NULL, and the reference
won't be released in 'dsi_destroy()'.

Secondly, as 'of_find_device_by_node()' already takes a reference, there is
no need for an additional 'get_device()'.

Move the assignment to 'msm_dsi->phy_dev' a few lines above and remove the
unneeded 'get_device()' to solve both issues.

Fixes: ec31abf668 ("drm/msm/dsi: Separate PHY to another platform device")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://lore.kernel.org/r/f15bc57648a00e7c99f943903468a04639d50596.1628241097.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Rob Clark <robdclark@chromium.org>
2021-08-10 14:24:31 -07:00
..
adreno drm/msm: Rework SQE version check 2021-08-10 14:22:49 -07:00
disp drm/msm/dpu: make dpu_hw_ctl_clear_all_blendstages clear necessary LMs 2021-08-07 11:48:40 -07:00
dp drm/msm/dp: update is_connected status base on sink count at dp_pm_resume() 2021-08-07 11:48:40 -07:00
dsi drm/msm/dsi: Fix some reference counted resource leaks 2021-08-10 14:24:31 -07:00
edp Merge tag 'drm-msm-next-2021-06-23b' of https://gitlab.freedesktop.org/drm/msm into drm-next 2021-06-24 07:21:16 +10:00
hdmi drm/msm: Generated register update 2021-06-23 07:33:54 -07:00
Kconfig drm/msm/dsi: Add PHY configuration for SC7280 2021-08-07 11:48:38 -07:00
Makefile drm/msm: Split out devfreq handling 2021-07-27 17:54:36 -07:00
msm_atomic_trace.h
msm_atomic_tracepoints.c
msm_atomic.c Merge drm/drm-fixes into drm-next 2021-04-13 23:15:09 +02:00
msm_debugfs.c drm/msm: Add debugfs to trigger shrinker 2021-06-23 07:33:55 -07:00
msm_debugfs.h
msm_drv.c drm/msm: Fix error return code in msm_drm_init() 2021-08-07 11:48:38 -07:00
msm_drv.h drm/msm/dsi: add three helper functions 2021-08-07 11:48:39 -07:00
msm_fb.c drm/msm: Move FB debug prints to drm_dbg_state() 2021-06-23 07:32:15 -07:00
msm_fbdev.c drm/msm: Implement mmap as GEM object function 2021-08-07 11:48:37 -07:00
msm_fence.c drm/msm: Track "seqno" fences by idr 2021-07-27 18:09:18 -07:00
msm_fence.h drm/msm: Track "seqno" fences by idr 2021-07-27 18:09:18 -07:00
msm_gem_prime.c drm/msm: Implement mmap as GEM object function 2021-08-07 11:48:37 -07:00
msm_gem_shrinker.c drm/msm: Add debugfs to trigger shrinker 2021-06-23 07:33:55 -07:00
msm_gem_submit.c drm/msm/gem: Mark active before pinning 2021-07-28 09:19:00 -07:00
msm_gem_vma.c drm/msm: Leave inuse count intact on map failure 2020-09-22 08:28:15 -07:00
msm_gem.c drm/msm: Use list_move_tail instead of list_del/list_add_tail in msm_gem.c 2021-08-07 11:48:37 -07:00
msm_gem.h drm/msm: Implement mmap as GEM object function 2021-08-07 11:48:37 -07:00
msm_gpu_devfreq.c drm/msm: Devfreq tuning 2021-07-27 17:54:36 -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: Conversion to drm scheduler 2021-07-28 09:19:00 -07:00
msm_gpu.h drm/msm: Utilize gpu scheduler priorities 2021-07-28 09:19:00 -07:00
msm_gpummu.c drm/msm: devcoredump iommu fault support 2021-06-23 07:33:55 -07:00
msm_iommu.c drm/msm: devcoredump iommu fault support 2021-06-23 07:33:55 -07:00
msm_kms.h drm/msm/kms: drop set_encoder_mode callback 2021-08-07 11:48:39 -07:00
msm_mmu.h drm/msm: devcoredump iommu fault support 2021-06-23 07:33:55 -07:00
msm_perf.c
msm_rd.c drm/msm: Conversion to drm scheduler 2021-07-28 09:19:00 -07:00
msm_ringbuffer.c drm/msm: Conversion to drm scheduler 2021-07-28 09:19:00 -07:00
msm_ringbuffer.h drm/msm: Conversion to drm scheduler 2021-07-28 09:19:00 -07:00
msm_submitqueue.c drm/msm: Utilize gpu scheduler priorities 2021-07-28 09:19:00 -07:00
NOTES