]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/mediatek: Handle component type MTK_DISP_OVL_2L correctly
authorPhong LE <ple@baylibre.com>
Wed, 19 Feb 2020 14:13:24 +0000 (15:13 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 12 Mar 2020 06:18:41 +0000 (07:18 +0100)
commit7ff3e83e64a50de10465c55add768fa41f71b8fb
tree122f5ae0146fd2aa749b00406df129cbe2f3935c
parent8e9fc4f34babc1b1a790e4111e0b037e2e31fb90
drm/mediatek: Handle component type MTK_DISP_OVL_2L correctly

commit 3d2ed431b8f39483477bc3c3a2aefbc9778ffe12 upstream.

The larb device remains NULL if the type is MTK_DISP_OVL_2L.
A kernel panic is raised when a crtc uses mtk_smi_larb_get or
mtk_smi_larb_put.

Fixes: b17bdd0d7a73 ("drm/mediatek: add component OVL_2L0")
Signed-off-by: Phong LE <ple@baylibre.com>
Signed-off-by: CK Hu <ck.hu@mediatek.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/mediatek/mtk_drm_ddp_comp.c