diff options
| author | Stuart Lee <[email protected]> | 2023-11-10 01:29:14 +0000 |
|---|---|---|
| committer | Chun-Kuang Hu <[email protected]> | 2023-12-11 14:40:05 +0000 |
| commit | b6961d187fcd138981b8707dac87b9fcdbfe75d1 (patch) | |
| tree | 0d9c7f1187be595c477005d73cc5dfeb91156df8 /tools/perf/scripts/python/task-analyzer.py | |
| parent | drm/mediatek: Add spinlock for setting vblank event in atomic_begin (diff) | |
| download | kernel-b6961d187fcd138981b8707dac87b9fcdbfe75d1.tar.gz kernel-b6961d187fcd138981b8707dac87b9fcdbfe75d1.zip | |
drm/mediatek: 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.
Fixes: cb1d6bcca542 ("drm/mediatek: Add dma dev get function")
Signed-off-by: Stuart Lee <[email protected]>
Cc: [email protected]
Reviewed-by: AngeloGioacchino DEl Regno <[email protected]>
Tested-by: Macpaul Lin <[email protected]>
Link: https://patchwork.kernel.org/project/dri-devel/patch/[email protected]/
Signed-off-by: Chun-Kuang Hu <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions
