OrangePi_CM5/drivers/gpu/drm/msm
Xiaoke Wang 9581e07b54 drm/msm/mdp5: check the return of kzalloc()
[ Upstream commit 047ae665577776b7feb11bd4f81f46627cff95e7 ]

kzalloc() is a memory allocation function which can return NULL when
some internal memory errors happen. So it is better to check it to
prevent potential wrong memory access.

Besides, since mdp5_plane_reset() is void type, so we should better
set `plane-state` to NULL after releasing it.

Signed-off-by: Xiaoke Wang <xkernel.wang@foxmail.com>
Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Patchwork: https://patchwork.freedesktop.org/patch/481055/
Link: https://lore.kernel.org/r/tencent_8E2A1C78140EE1784AB2FF4B2088CC0AB908@qq.com
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: Rob Clark <robdclark@chromium.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-04-27 13:53:53 +02:00
..
adreno drm/msm: Fix range size vs end confusion 2022-04-20 09:23:14 +02:00
disp drm/msm/mdp5: check the return of kzalloc() 2022-04-27 13:53:53 +02:00
dp drm/msm/dp: populate connector of struct dp_panel 2022-04-08 14:40:16 +02:00
dsi drm/msm/dsi: Use connector directly in msm_dsi_manager_connector_init() 2022-04-20 09:23:14 +02:00
edp drm/msm: Fix null pointer dereference on pointer edp 2021-10-20 11:45:05 +02:00
hdmi drm/msm/hdmi: Fix missing put_device() call in msm_hdmi_get_phy 2022-02-01 17:25:47 +01:00
Kconfig drm/msm/dp: displayPort driver need algorithm rational 2022-01-27 10:53:55 +01:00
Makefile drm/msm/dp: Use qmp phy for DP PLL and PHY 2020-09-15 10:54:35 -07:00
NOTES
…
msm_atomic.c drm/msm: enable vblank during atomic commits 2020-08-21 22:30:17 -07:00
msm_atomic_trace.h
…
msm_atomic_tracepoints.c
…
msm_debugfs.c drm/msm: Do hw_init() before capturing GPU state 2021-12-08 09:03:26 +01:00
msm_debugfs.h
…
msm_drv.c drm/msm: Fix wrong size calculation 2022-02-01 17:25:44 +01:00
msm_drv.h drm/msm/a6xx: Track current ctx by seqno 2021-10-20 11:45:05 +02:00
msm_fb.c
…
msm_fbdev.c
…
msm_fence.c drm/msm: Ratelimit invalid-fence message 2021-04-10 13:36:08 +02:00
msm_fence.h
…
msm_gem.c drm/msm: Add missing put_task_struct() in debugfs path 2022-04-20 09:23:10 +02:00
msm_gem.h drm/msm: Fix premature purging of BO 2020-09-22 08:28:15 -07:00
msm_gem_prime.c drm: allow limiting the scatter list size. 2020-09-09 07:58:56 +02:00
msm_gem_shrinker.c drm/msm: Convert shrinker msgs to tracepoints 2020-09-09 15:25:54 -07:00
msm_gem_submit.c drm/msm: Drop context arg to gpu->submit() 2020-09-12 10:45:56 -07:00
msm_gem_vma.c drm/msm: Leave inuse count intact on map failure 2020-09-22 08:28:15 -07:00
msm_gpu.c drm/msm: prevent NULL dereference in msm_gpu_crashstate_capture() 2021-11-18 14:03:57 +01:00
msm_gpu.h drm/msm: Allow a5xx to mark the RPTR shadow as privileged 2020-09-15 10:47:44 -07:00
msm_gpu_trace.h drm/msm/gpu: Add suspend/resume tracepoints 2020-09-12 09:59:58 -07:00
msm_gpu_tracepoints.c
…
msm_gpummu.c Merge tag 'drm-msm-next-2020-09-27' of https://gitlab.freedesktop.org/drm/msm into drm-next 2020-09-29 10:18:49 +10:00
msm_iommu.c drm next for 5.10-rc1 2020-10-15 10:46:16 -07:00
msm_kms.h
…
msm_mmu.h drm/msm: Add support to create a local pagetable 2020-09-12 10:48:32 -07:00
msm_perf.c
…
msm_rd.c
…
msm_ringbuffer.c drm/msm: Enable expanded apriv support for a650 2020-09-04 12:14:07 -07:00
msm_ringbuffer.h drm/msm/a6xx: Add support for per-instance pagetables 2020-09-12 10:48:32 -07:00
msm_submitqueue.c drm/msm: Add a context pointer to the submitqueue 2020-09-12 10:45:56 -07:00