]> git.karo-electronics.de Git - linux-beck.git/commit
drm/sti: fix potential crash in gdp
authorbenjamin.gaignard@linaro.org <benjamin.gaignard@linaro.org>
Thu, 7 Jan 2016 13:30:37 +0000 (14:30 +0100)
committerVincent Abriou <vincent.abriou@st.com>
Fri, 26 Feb 2016 09:03:55 +0000 (10:03 +0100)
commit20c476010d19758e98edf0bf9192121636f910dc
tree7862c887aaa1b1e6be5891aa3625607edd766817
parent44ab4042178bd596275927ea050980aa4257581b
drm/sti: fix potential crash in gdp

In some cases last_close() could be called before sti_gdp_disable()
and make kernel crash because mixer structure has been destroy.
Let's gdp keep a reference on vtg to fix that (like it is already done
in HQVDP)

Signed-off-by: Benjamin Gaignard <benjamin.gaignard@linaro.org>
Reviewed-by: Vincent Abriou <vincent.abriou@st.com>
drivers/gpu/drm/sti/sti_gdp.c