]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/mediatek: fix null pointer dereference
authorMatthias Brugger <matthias.bgg@gmail.com>
Fri, 18 Nov 2016 10:06:10 +0000 (11:06 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 8 Dec 2016 06:16:20 +0000 (07:16 +0100)
commitab34b429a01f608488016ce207ab7dda1fcdcfe3
treef550b3306d1bc966ccccd709f8616ab21f068c9a
parent43b5bb262711e0e81ea348072a01ef1744b157ca
drm/mediatek: fix null pointer dereference

commit 5ad45307d990020b25a8f7486178b6e033790f70 upstream.

The probe function requests the interrupt before initializing
the ddp component. Which leads to a null pointer dereference at boot.
Fix this by requesting the interrput after all components got
initialized properly.

Fixes: 119f5173628a ("drm/mediatek: Add DRM Driver for Mediatek SoC MT8173.")
Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Change-Id: I57193a7ab554dfb37c35a455900689333adf511c
drivers/gpu/drm/mediatek/mtk_disp_ovl.c