public inbox for linux-arm-kernel@lists.infradead.org
 help / color / mirror / Atom feed
* [PATCH 0/1] Fix access violation in mtk_drm_crtc_dma_dev_get
@ 2023-11-10  1:29 Stuart Lee
  2023-11-10  1:29 ` [PATCH 1/1] drm/mediatek: " Stuart Lee
  0 siblings, 1 reply; 6+ messages in thread
From: Stuart Lee @ 2023-11-10  1:29 UTC (permalink / raw)
  To: Chun-Kuang Hu, AngeloGioacchino Del Regno
  Cc: Philipp Zabel, David Airlie, Daniel Vetter, Matthias Brugger,
	Nancy . Lin, dri-devel, linux-mediatek, linux-kernel,
	linux-arm-kernel, Stuart Lee, Lancelot Wu, Shawn Sung, Pablo Sun,
	Macpaul Lin

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(-)

-- 
2.18.0


_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2023-12-11 14:45 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-11-10  1:29 [PATCH 0/1] Fix access violation in mtk_drm_crtc_dma_dev_get Stuart Lee
2023-11-10  1:29 ` [PATCH 1/1] drm/mediatek: " Stuart Lee
2023-11-10  2:00   ` CK Hu (胡俊光)
2023-11-10 11:57   ` AngeloGioacchino Del Regno
2023-11-14  9:16   ` Macpaul Lin
2023-12-11 14:44   ` Chun-Kuang Hu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox