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)
committerPaul Cercueil <paul@crapouillou.net>
Sat, 14 Dec 2019 18:25:54 +0000 (19:25 +0100)
commit354b051c5dcbeb35bbfd5d54161364fc7a75a58a
tree9de31a74767f328d3a79bb8da5b3ba58aff3f582
parent9482ae6ea7879f29221eb9cd10807d087517b38b
gpu/drm: ingenic: Avoid null pointer deference in plane atomic update

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>
drivers/gpu/drm/ingenic/ingenic-drm.c