linux_dsm_epyc7002/drivers/gpu/drm/msm/dsi
Jerome Brunet 12a26c298d clk: divider: fix incorrect usage of container_of
divider_recalc_rate() is an helper function used by clock divider of
different types, so the structure containing the 'hw' pointer is not
always a 'struct clk_divider'

At the following line:
> div = _get_div(table, val, flags, divider->width);

in several cases, the value of 'divider->width' is garbage as the actual
structure behind this memory is not a 'struct clk_divider'

Fortunately, this width value is used by _get_val() only when
CLK_DIVIDER_MAX_AT_ZERO flag is set. This has never been the case so
far when the structure is not a 'struct clk_divider'. This is probably
why we did not notice this bug before

Fixes: afe76c8fd0 ("clk: allow a clk divider with max divisor when zero")
Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
Acked-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
Acked-by: Sylvain Lemieux <slemieux.tyco@gmail.com>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
2017-12-28 15:16:04 -08:00
..
phy drm/msm/dsi: convert to msm_clk_get() 2017-10-28 11:01:33 -04:00
pll clk: divider: fix incorrect usage of container_of 2017-12-28 15:16:04 -08:00
dsi_cfg.c drm/msm/dsi: convert to msm_clk_get() 2017-10-28 11:01:33 -04:00
dsi_cfg.h drm/msm/dsi: Add 8x96 info in dsi_cfg 2017-02-06 11:28:44 -05:00
dsi_host.c Linux 4.14-rc7 2017-11-02 12:40:41 +10:00
dsi_manager.c drm: Nuke drm_atomic_helper_connector_dpms 2017-08-08 14:48:48 +02:00
dsi.c drm/msm/dsi: Implement RPM suspend/resume callbacks 2017-08-02 07:53:46 -04:00
dsi.h drm/msm/dsi: Implement RPM suspend/resume callbacks 2017-08-02 07:53:46 -04:00
dsi.xml.h drm/msm: update generated headers 2017-06-16 11:16:07 -04:00
mmss_cc.xml.h drm/msm: update generated headers 2017-06-16 11:16:07 -04:00
sfpb.xml.h drm/msm: update generated headers 2017-06-16 11:16:07 -04:00