aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/devicetree/bindings
diff options
context:
space:
mode:
authorSamuel Holland <samuel@sholland.org>2022-08-11 22:16:23 -0500
committerMaxime Ripard <maxime@cerno.tech>2022-08-15 09:09:49 +0200
commit82a1356a933d8443139f8886f11b63c974a09a67 (patch)
tree35332206361b473cff229cca40c64e6b184b1cee /Documentation/devicetree/bindings
parentdt-bindings: display: sun4i: Add D1 TCONs to conditionals (diff)
downloadlinux-dev-82a1356a933d8443139f8886f11b63c974a09a67.tar.xz
linux-dev-82a1356a933d8443139f8886f11b63c974a09a67.zip
drm/sun4i: dsi: Prevent underflow when computing packet sizes
Currently, the packet overhead is subtracted using unsigned arithmetic. With a short sync pulse, this could underflow and wrap around to near the maximal u16 value. Fix this by using signed subtraction. The call to max() will correctly handle any negative numbers that are produced. Apply the same fix to the other timings, even though those subtractions are less likely to underflow. Fixes: 133add5b5ad4 ("drm/sun4i: Add Allwinner A31 MIPI-DSI controller support") Signed-off-by: Samuel Holland <samuel@sholland.org> Reviewed-by: Jernej Skrabec <jernej.skrabec@gmail.com> Signed-off-by: Maxime Ripard <maxime@cerno.tech> Link: https://lore.kernel.org/r/20220812031623.34057-1-samuel@sholland.org
Diffstat (limited to 'Documentation/devicetree/bindings')
0 files changed, 0 insertions, 0 deletions