Re: [PATCH] drm/mediatek: mtk_drm_crtc: Add checks for devm_kcalloc

2023-01-27 Thread Chun-Kuang Hu
Hi, Ruanjinjie: Applied to mediatek-drm-next [1], thanks. [1] https://git.kernel.org/pub/scm/linux/kernel/git/chunkuang.hu/linux.git/log/?h=mediatek-drm-next Regards, Chun-Kuang. AngeloGioacchino Del Regno 於 2022年12月5日 週一 下午7:53寫道: > > Il 05/12/22 10:51, ruanjinjie ha scritto: > > As the devm

Re: [PATCH] drm/mediatek: mtk_drm_crtc: Add checks for devm_kcalloc

2022-12-05 Thread AngeloGioacchino Del Regno
Il 05/12/22 10:51, ruanjinjie ha scritto: As the devm_kcalloc may return NULL, the return value needs to be checked to avoid NULL poineter dereference. Fixes: 31c5558dae05 ("drm/mediatek: Refactor plane init") Signed-off-by: ruanjinjie Reviewed-by: AngeloGioacchino Del Regno

[PATCH] drm/mediatek: mtk_drm_crtc: Add checks for devm_kcalloc

2022-12-05 Thread ruanjinjie
As the devm_kcalloc may return NULL, the return value needs to be checked to avoid NULL poineter dereference. Fixes: 31c5558dae05 ("drm/mediatek: Refactor plane init") Signed-off-by: ruanjinjie --- drivers/gpu/drm/mediatek/mtk_drm_crtc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/driv