Skip to content

Fix access violation in mtk_drm_crtc_dma_dev_get

Stuart Lee dri-devel linux-arm-kernel linux-mediatek lkml stable 1 version Applied

Status from this message: Applied to mediatek-drm-fixes [1], thanks.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest1 patch 4 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/1drm/mediatek: Fix access violation in mtk_drm_crtc_dma_dev_getdrivers/gpu/drm/mediatek/mtk_drm_crtc.c+8 -14 replies

Reviews trailers per patch

The patch has a Reviewed-by or Acked-by.

PatchCK HuAngeloGioacchino DEl RegnoMacpaul Lin
1/1R-b R-b T-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 3 reviewers.

Read the v1 thread

Cover letter [PATCH 0/1] Fix access violation in mtk_drm_crtc_dma_dev_get

Add error handling to check NULL input in
mtk_drm_crtc_dma_dev_get function.

While display path is not configured correctly, none of crtc is established. So the caller of mtk_drm_crtc_dma_dev_get may pass input parameter *crtc as NULL, Which may cause coredump when we try to get the container of NULL pointer.

Stuart Lee (1):
drm/mediatek: Fix access violation in mtk_drm_crtc_dma_dev_get

 drivers/gpu/drm/mediatek/mtk_drm_crtc.c | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)
Signature · 1 line
2.18.0