linux/drivers/gpu/drm/rockchip
Colin Ian King ce0cb93a5a drm/rockchip: cdn-dp: fix sign extension on an int multiply for a u64 result
The variable bit_per_pix is a u8 and is promoted in the multiplication
to an int type and then sign extended to a u64. If the result of the
int multiplication is greater than 0x7fffffff then the upper 32 bits will
be set to 1 as a result of the sign extension. Avoid this by casting
tu_size_reg to u64 to avoid sign extension and also a potential overflow.

Fixes: 1a0f7ed3ab ("drm/rockchip: cdn-dp: add cdn DP support for rk3399")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Reviewed-by: Guenter Roeck <groeck@chromium.org>
Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Link: https://patchwork.freedesktop.org/patch/msgid/20200915162049.36434-1-colin.king@canonical.com
2021-05-28 20:27:44 +02:00
..
analogix_dp-rockchip.c Merge drm/drm-next into drm-misc-next 2020-04-17 08:12:22 +02:00
cdn-dp-core.c drm/rockchip: cdn-dp-core: add MODULE_FIRMWARE macro 2021-05-28 19:46:24 +02:00
cdn-dp-core.h drm/rockchip: fix integer type used for storing dp data rate 2020-01-13 14:31:59 +01:00
cdn-dp-reg.c drm/rockchip: cdn-dp: fix sign extension on an int multiply for a u64 result 2021-05-28 20:27:44 +02:00
cdn-dp-reg.h
dw_hdmi-rockchip.c drm/rockchip: dw_hdmi: fix incorrect clock in vpll clock error message 2020-11-29 17:39:21 +01:00
dw-mipi-dsi-rockchip.c drm/rockchip: remove unused function 2021-05-28 19:55:52 +02:00
inno_hdmi.c drm/rockchip: Use simple encoder 2020-04-02 14:16:45 +02:00
inno_hdmi.h
Kconfig drm/rockchip: fix typo in Kconfig 's/HDMI/dsi/' 2020-11-29 17:39:44 +01:00
Makefile
rk3066_hdmi.c drm/rockchip: Use simple encoder 2020-04-02 14:16:45 +02:00
rk3066_hdmi.h
rockchip_drm_drv.c drm/rockchip: remove existing generic drivers to take over the device 2021-05-28 15:57:19 +02:00
rockchip_drm_drv.h drm/rockchip: Add support for afbc 2020-03-23 12:45:26 +01:00
rockchip_drm_fb.c drm/rockchip: remove _unlocked suffix in drm_gem_object_put_unlocked 2020-05-19 22:31:35 +01:00
rockchip_drm_fb.h
rockchip_drm_fbdev.c drm: Remove drm_fb_helper add, add all and remove connector calls 2020-03-06 14:19:58 +01:00
rockchip_drm_fbdev.h
rockchip_drm_gem.c drm/gem: Use struct dma_buf_map in GEM vmap ops and convert GEM backends 2020-11-09 09:19:24 +01:00
rockchip_drm_gem.h drm/gem: Use struct dma_buf_map in GEM vmap ops and convert GEM backends 2020-11-09 09:19:24 +01:00
rockchip_drm_vop.c drm: rockchip: set alpha_en to 0 if it is not used 2021-05-28 19:28:40 +02:00
rockchip_drm_vop.h drm/rockchip: Require the YTR modifier for AFBC 2021-02-25 10:18:45 +01:00
rockchip_lvds.c drm/rockchip: lvds: Fix an error handling path 2021-05-28 20:10:41 +02:00
rockchip_lvds.h drm/rockchip: lvds: Add PX30 support 2020-01-06 11:56:02 +01:00
rockchip_rgb.c drm/rockchip/rockchip_rgb: Consume our own header 2020-11-17 20:04:17 +01:00
rockchip_rgb.h
rockchip_vop_reg.c drm: rockchip: add alpha support for RK3036, RK3066, RK3126 and RK3188 2021-05-28 19:28:00 +02:00
rockchip_vop_reg.h drm: rockchip: add alpha support for RK3036, RK3066, RK3126 and RK3188 2021-05-28 19:28:00 +02:00