]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
drm/sti: do not set gdp pixel clock rate if mode is not set
authorVincent Abriou <vincent.abriou@st.com>
Thu, 2 Feb 2017 08:49:02 +0000 (09:49 +0100)
committerVincent Abriou <vincent.abriou@st.com>
Fri, 10 Feb 2017 08:34:39 +0000 (09:34 +0100)
commitc5649ee49761f5367c46c5ae6579ab8e8b03575d
tree6bf45a1847cb24c9720e14565b6c59605cd8ec77
parent1b7f145123f4d59e6b88a83b507c7981df0ee701
drm/sti: do not set gdp pixel clock rate if mode is not set

Fix a division by 0 case : in some cases, when the GDP plane is being
disabled atomic_check() is called with "mode->clock = 0".
In that case, do not set parent and pixel clock rate.

Signed-off-by: Vincent Abriou <vincent.abriou@st.com>
drivers/gpu/drm/sti/sti_gdp.c