linux/drivers/gpu/drm/mediatek
Sui Jingfeng 867aa88c9e drm/mediatek: Fix potential memory leak if vmap() fail
[ Upstream commit 379091e0f6 ]

Also return -ENOMEM if such a failure happens, the implement should take
responsibility for the error handling.

Fixes: 3df64d7b0a ("drm/mediatek: Implement gem prime vmap/vunmap function")
Reviewed-by: Matthias Brugger <matthias.bgg@gmail.com>
Reviewed-by: Alexandre Mergnat <amergnat@baylibre.com>
Signed-off-by: Sui Jingfeng <suijingfeng@loongson.cn>
Reviewed-by: CK Hu <ck.hu@mediatek.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Link: https://patchwork.kernel.org/project/dri-devel/patch/20230706134000.130098-1-suijingfeng@loongson.cn/
Signed-off-by: Chun-Kuang Hu <chunkuang.hu@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-09-13 09:42:43 +02:00
..
Kconfig
Makefile
mtk_cec.c
mtk_cec.h
mtk_disp_aal.c
mtk_disp_ccorr.c
mtk_disp_color.c
mtk_disp_drv.h
mtk_disp_gamma.c
mtk_disp_merge.c
mtk_disp_ovl.c
mtk_disp_rdma.c
mtk_dp_reg.h
mtk_dp.c drm/mediatek: dp: Add missing error checks in mtk_dp_parse_capabilities 2023-09-13 09:42:43 +02:00
mtk_dpi_regs.h
mtk_dpi.c
mtk_drm_crtc.c drm/mediatek: Remove freeing not dynamic allocated memory 2023-09-13 09:42:43 +02:00
mtk_drm_crtc.h
mtk_drm_ddp_comp.c
mtk_drm_ddp_comp.h
mtk_drm_drv.c
mtk_drm_drv.h
mtk_drm_gem.c drm/mediatek: Fix potential memory leak if vmap() fail 2023-09-13 09:42:43 +02:00
mtk_drm_gem.h
mtk_drm_plane.c
mtk_drm_plane.h
mtk_dsi.c
mtk_hdmi_ddc.c
mtk_hdmi_regs.h
mtk_hdmi.c
mtk_hdmi.h
mtk_mdp_rdma.c
mtk_mdp_rdma.h