diff options
author | Boris Brezillon <boris.brezillon@bootlin.com> | 2018-10-18 12:02:50 +0200 |
---|---|---|
committer | Maxime Ripard <maxime.ripard@bootlin.com> | 2018-10-19 11:50:25 +0200 |
commit | e84cb605e02f1b3d0aee8d7157419cd8aaa06038 (patch) | |
tree | a479bb12e9d290e8f14da3402ad48fcabf9cf6d0 /include | |
parent | 4364bcb2cd21d042bde4776448417ddffbc54045 (diff) | |
download | linux-e84cb605e02f1b3d0aee8d7157419cd8aaa06038.tar.bz2 |
drm/sun4i: Fix an ulong overflow in the dotclock driver
The calculated ideal rate can easily overflow an unsigned long, thus
making the best div selection buggy as soon as no ideal match is found
before the overflow occurs.
Fixes: 4731a72df273 ("drm/sun4i: request exact rates to our parents")
Cc: <stable@vger.kernel.org>
Signed-off-by: Boris Brezillon <boris.brezillon@bootlin.com>
Acked-by: Maxime Ripard <maxime.ripard@bootlin.com>
Signed-off-by: Maxime Ripard <maxime.ripard@bootlin.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20181018100250.12565-1-boris.brezillon@bootlin.com
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions