]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
gpu/drm: ingenic: Avoid null pointer deference in plane atomic update
authorPaul Cercueil <paul@crapouillou.net>
Tue, 10 Dec 2019 14:41:38 +0000 (15:41 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 24 Feb 2020 07:36:36 +0000 (08:36 +0100)
commit687ef9c269b6629fadd5e794d7e88b5028387a4f
treeafecc1ea414e1fad4bb6a37cbd726b06f5d15363
parente07c107a24835a6eb15f7b2c2eb6c0e0c0e4583c
gpu/drm: ingenic: Avoid null pointer deference in plane atomic update

[ Upstream commit 354b051c5dcbeb35bbfd5d54161364fc7a75a58a ]

It is possible that there is no drm_framebuffer associated with a given
plane state.

v2: Handle drm_plane->state which can be NULL too

Signed-off-by: Paul Cercueil <paul@crapouillou.net>
Link: https://patchwork.freedesktop.org/patch/msgid/20191210144142.33143-2-paul@crapouillou.net
# *** extracted tags ***
Acked-by: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/ingenic/ingenic-drm.c