aboutsummaryrefslogtreecommitdiffstats
path: root/lib/xarray.c
diff options
context:
space:
mode:
authorXiaoke Wang <[email protected]>2022-04-07 02:31:51 +0000
committerRob Clark <[email protected]>2022-04-11 16:36:13 +0000
commit047ae665577776b7feb11bd4f81f46627cff95e7 (patch)
treeb3f474987aec680ccc8aded98dc92c5ea9ab8564 /lib/xarray.c
parentdrm/msm: Fix range size vs end confusion (diff)
downloadkernel-047ae665577776b7feb11bd4f81f46627cff95e7.tar.gz
kernel-047ae665577776b7feb11bd4f81f46627cff95e7.zip
drm/msm/mdp5: check the return of kzalloc()
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 <[email protected]> Reviewed-by: Dmitry Baryshkov <[email protected]> Patchwork: https://patchwork.freedesktop.org/patch/481055/ Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Dmitry Baryshkov <[email protected]> Signed-off-by: Rob Clark <[email protected]>
Diffstat (limited to 'lib/xarray.c')
0 files changed, 0 insertions, 0 deletions