aboutsummaryrefslogtreecommitdiff
path: root/lib/test_fortify/write_overflow-strncpy-src.c
diff options
context:
space:
mode:
authorMichael Walle <[email protected]>2023-09-05 10:49:21 +0200
committerChun-Kuang Hu <[email protected]>2023-11-23 15:04:52 +0000
commit4662817aed5a9d6c695658d0105d8ff4b84ac6cb (patch)
treebefddde564b302217e8614fb947dd25afb594eb0 /lib/test_fortify/write_overflow-strncpy-src.c
parent9aa6a662c309e6f8770972840948af963bd6ff34 (diff)
drm/mediatek: fix kernel oops if no crtc is found
drm_crtc_from_index(0) might return NULL if there are no CRTCs registered at all which will lead to a kernel oops in mtk_drm_crtc_dma_dev_get(). Add the missing return value check. Fixes: 0d9eee9118b7 ("drm/mediatek: Add drm ovl_adaptor sub driver for MT8195") Signed-off-by: Michael Walle <[email protected]> Reviewed-by: NĂ­colas F. R. A. Prado <[email protected]> Tested-by: NĂ­colas F. R. A. Prado <[email protected]> Reviewed-by: AngeloGioacchino Del Regno <[email protected]> Tested-by: Eugen Hristev <[email protected]> Reviewed-by: Eugen Hristev <[email protected]> Link: https://patchwork.kernel.org/project/dri-devel/patch/[email protected]/ Signed-off-by: Chun-Kuang Hu <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions