linux/drivers/gpu/drm/arm
Colin Ian King 8bfd16c687 drm/arm: fix unintentional integer overflow on left shift
[ Upstream commit 5f368ddea6 ]

Shifting the integer value 1 is evaluated using 32-bit arithmetic
and then used in an expression that expects a long value leads to
a potential integer overflow. Fix this by using the BIT macro to
perform the shift to avoid the overflow.

Addresses-Coverity: ("Unintentional integer overflow")
Fixes: ad49f8602f ("drm/arm: Add support for Mali Display Processors")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Acked-by: Liviu Dudau <liviu.dudau@arm.com>
Signed-off-by: Liviu Dudau <Liviu.Dudau@arm.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200618100400.11464-1-colin.king@canonical.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-08-19 08:16:07 +02:00
..
display drm/komeda: Workaround for broken FLIP_COMPLETE timestamps 2019-12-31 16:43:16 +01:00
Kconfig drm/komeda: komeda_dev/pipeline/component definition and initialzation 2019-01-14 11:09:23 +00:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
hdlcd_crtc.c drm/arm: drop use of drmP.h 2019-08-14 18:31:15 +02:00
hdlcd_drv.c drm/arm: drop use of drmP.h 2019-08-14 18:31:15 +02:00
hdlcd_drv.h drm/arm/hdlcd: Use drm_fb_cma_fbdev_init/fini() 2018-07-31 16:31:50 +01:00
hdlcd_regs.h
malidp_crtc.c drm/arm: drop use of drmP.h 2019-08-14 18:31:15 +02:00
malidp_drv.c drm/arm: drop use of drmP.h 2019-08-14 18:31:15 +02:00
malidp_drv.h drm/arm: drop use of drmP.h 2019-08-14 18:31:15 +02:00
malidp_hw.c drm/arm: drop use of drmP.h 2019-08-14 18:31:15 +02:00
malidp_hw.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 443 2019-06-05 17:37:17 +02:00
malidp_mw.c drm/arm/mali: make malidp_mw_connector_helper_funcs static 2020-01-17 19:49:05 +01:00
malidp_mw.h drm: mali-dp: Add writeback connector 2018-07-05 15:19:03 +01:00
malidp_planes.c drm/arm: fix unintentional integer overflow on left shift 2020-08-19 08:16:07 +02:00
malidp_regs.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 443 2019-06-05 17:37:17 +02:00