]> git.baikalelectronics.ru Git - kernel.git/commit
drm/sti: fix atomic_disable check
authorFabien Dessenne <fabien.dessenne@st.com>
Tue, 6 Sep 2016 07:41:48 +0000 (09:41 +0200)
committerVincent Abriou <vincent.abriou@st.com>
Tue, 20 Sep 2016 09:32:05 +0000 (11:32 +0200)
commitf2d96e86523d7186e6c926474552acf0454efebe
treebc234eed2644272e8de5a1efdc547cfd97f08624
parentd640113ad145e9ac8946468617fd9c414afada99
drm/sti: fix atomic_disable check

When a drm_plane is being disabled, its ->crtc member is set to NULL
before the .atomic_disable() func is called.
To get the crtc of the plane, read old_state->crtc instead of
drm_plane->crtc

Signed-off-by: Fabien Dessenne <fabien.dessenne@st.com>
Acked-by: Vincent Abriou <vincent.abriou@st.com>
drivers/gpu/drm/sti/sti_cursor.c
drivers/gpu/drm/sti/sti_gdp.c
drivers/gpu/drm/sti/sti_hqvdp.c