linux/drivers/gpu/drm/msm
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
..
adreno treewide: setup_timer() -> timer_setup() 2017-11-21 15:57:07 -08:00
dsi clk: divider: fix incorrect usage of container_of 2017-12-28 15:16:04 -08:00
edp drm/msm/edp: convert to msm_clk_get() 2017-10-28 11:01:33 -04:00
hdmi drm/msm/hdmi: convert to msm_clk_get() 2017-10-28 11:01:34 -04:00
mdp Linux 4.14-rc7 2017-11-02 12:40:41 +10:00
Kconfig drm/msm: gpu: call qcom_mdt interfaces only for ARCH_QCOM 2017-08-01 19:25:51 -04:00
Makefile main drm pull request for v4.15 2017-11-15 20:42:10 -08:00
msm_atomic.c drm/msm: update cursors asynchronously through atomic 2017-10-28 14:02:56 -04:00
msm_debugfs.c drm/msm/gpu: use pm-runtime 2017-04-08 06:59:31 -04:00
msm_debugfs.h drm/msm: Remove msm_debugfs_cleanup() 2017-03-08 11:24:45 +01:00
msm_drv.c drm/msm/atomic: switch to drm_atomic_helper_check 2017-10-28 14:02:56 -04:00
msm_drv.h drm/msm/atomic: switch to drm_atomic_helper_check 2017-10-28 14:02:56 -04:00
msm_fb.c drm/msm: make msm_framebuffer_init() static 2017-08-22 13:20:39 -04:00
msm_fbdev.c Merge tag 'drm-msm-next-2017-08-22' of git://people.freedesktop.org/~robclark/linux into drm-next 2017-08-25 09:29:45 +10:00
msm_fence.c drm/msm: Support multiple ringbuffers 2017-10-28 11:01:36 -04:00
msm_fence.h drm/msm: Support multiple ringbuffers 2017-10-28 11:01:36 -04:00
msm_gem_prime.c drm/msm: Expose our reservation object when exporting a dmabuf. 2017-05-27 13:48:26 -04:00
msm_gem_shrinker.c drm/msm: Separate locking of buffer resources from struct_mutex 2017-06-17 08:03:07 -04:00
msm_gem_submit.c drm/msm: preserve IOVAs in submit's bo table 2017-10-28 13:59:18 -04:00
msm_gem_vma.c drm/msm: NULL pointer dereference in drivers/gpu/drm/msm/msm_gem_vma.c 2017-08-01 18:41:16 -04:00
msm_gem.c Linux 4.14-rc7 2017-11-02 12:40:41 +10:00
msm_gem.h drm/msm: Support multiple ringbuffers 2017-10-28 11:01:36 -04:00
msm_gpu.c treewide: setup_timer() -> timer_setup() 2017-11-21 15:57:07 -08:00
msm_gpu.h drm/msm: Make the value of RB_CNTL (almost) generic 2017-10-28 11:01:38 -04:00
msm_iommu.c drm/msm: pm runtime support for iommu 2017-04-08 06:59:31 -04:00
msm_kms.h drm/msm/mdp5: Set up runtime PM for MDSS 2017-08-02 07:53:46 -04:00
msm_mmu.h drm/msm: let gpu wire up it's own fault handler 2017-02-06 11:28:42 -05:00
msm_perf.c drm/msm: Remove msm_debugfs_cleanup() 2017-03-08 11:24:45 +01:00
msm_rd.c Linux 4.14-rc7 2017-11-02 12:40:41 +10:00
msm_ringbuffer.c drm/msm: Implement preemption for A5XX targets 2017-10-28 11:01:38 -04:00
msm_ringbuffer.h drm/msm: Implement preemption for A5XX targets 2017-10-28 11:01:38 -04:00
msm_submitqueue.c drm/msm: Support multiple ringbuffers 2017-10-28 11:01:36 -04:00
NOTES