summaryrefslogtreecommitdiffstats
path: root/fs/exofs/sys.c
diff options
context:
space:
mode:
authorMaxime Ripard <maxime.ripard@bootlin.com>2018-02-21 13:57:02 +0100
committerMaxime Ripard <maxime.ripard@bootlin.com>2018-03-06 16:27:31 +0100
commit5af894bd20fa16970378cae8ff55917294e0d9dd (patch)
treeba9ca9d2f7d5446c2fe1283cb9c07829cbc8fce0 /fs/exofs/sys.c
parente742a17cd360fbd64425a3c861c59062ec837f23 (diff)
downloadlinux-5af894bd20fa16970378cae8ff55917294e0d9dd.tar.bz2
drm/sun4i: rgb: Fix potential division by zero
In the case where mode_valid callback of our RGB connector was called before mode_set was being called, the range of dividers would not be set, resulting in a division by zero later on in the clk_round_rate logic. Set the range of dividers before calling clk_round_rate to fix this. Reviewed-by: Chen-Yu Tsai <wens@csie.org> Tested-by: Giulio Benetti <giulio.benetti@micronovasrl.com> Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com> Link: https://patchwork.freedesktop.org/patch/msgid/20180221125703.4595-2-maxime.ripard@bootlin.com
Diffstat (limited to 'fs/exofs/sys.c')
0 files changed, 0 insertions, 0 deletions