]> git.baikalelectronics.ru Git - kernel.git/commit
drm/sti: do not check hw scaling if mode is not set
authorFabien DESSENNE <fabien.dessenne@st.com>
Thu, 12 Jan 2017 16:27:37 +0000 (17:27 +0100)
committerVincent Abriou <vincent.abriou@st.com>
Fri, 10 Feb 2017 08:34:39 +0000 (09:34 +0100)
commitfcd09dd39cb615fe3c2f06372e60f7c448f0c8d0
tree7696405c5238cb7d041bc64a6c7eb337adf295c8
parent11b5ff51af35af19f73301ecb06b34bb6b7d52e8
drm/sti: do not check hw scaling if mode is not set

Fix a division by 0 case : in some cases, when the HQVDP plane is being
disabled atomic_check() is called with "mode->clock = 0".
In that case, do not check for scaling capabilities.

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