summaryrefslogtreecommitdiff
path: root/include/linux/timerqueue.h
diff options
context:
space:
mode:
authorStuart Lee <stuart.lee@mediatek.com>2023-11-10 09:29:14 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2023-12-20 17:02:02 +0100
commit03e63e497a404f444f5af25e120739da3a4f03ff (patch)
treea54cfa052ba74cc85ac0dcd5994f7971059ada8c /include/linux/timerqueue.h
parent3aae4ef4d799fb3d0381157640fdb251008cf0ae (diff)
drm/mediatek: Fix access violation in mtk_drm_crtc_dma_dev_get
commit b6961d187fcd138981b8707dac87b9fcdbfe75d1 upstream. 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. Fixes: cb1d6bcca542 ("drm/mediatek: Add dma dev get function") Signed-off-by: Stuart Lee <stuart.lee@mediatek.com> Cc: stable@vger.kernel.org Reviewed-by: AngeloGioacchino DEl Regno <angelogioacchino.delregno@collabora.com> Tested-by: Macpaul Lin <macpaul.lin@mediatek.com> Link: https://patchwork.kernel.org/project/dri-devel/patch/20231110012914.14884-2-stuart.lee@mediatek.com/ Signed-off-by: Chun-Kuang Hu <chunkuang.hu@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/timerqueue.h')
0 files changed, 0 insertions, 0 deletions