Re: [Freedreno] [PATCH] drm/msm/disp: check the return value of kzalloc()

2022-03-24 Thread Abhinav Kumar
On 3/24/2022 2:15 AM, xkernel.w...@foxmail.com wrote: From: Xiaoke Wang 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. Signed-off-by: Xiaoke Wang Reviewed-by:

[Freedreno] [PATCH] drm/msm/disp: check the return value of kzalloc()

2022-03-24 Thread xkernel . wang
From: Xiaoke Wang 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. Signed-off-by: Xiaoke Wang --- drivers/gpu/drm/msm/disp/msm_disp_snapshot_util.c | 2 ++ 1 file