linux/drivers/gpu/drm/arm
Colin Ian King 64918e3f71 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:14:54 +02:00
..
hdlcd_crtc.c drm/arm/hdlcd: Allow a bit of clock tolerance 2019-06-25 11:35:58 +08:00
hdlcd_drv.c drm/arm/hdlcd: Reject atomic commits that disable only the plane 2018-07-31 16:31:50 +01: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
Kconfig drm/arm: make fbdev support really optional 2016-07-18 09:11:42 +02:00
Makefile drm: mali-dp: Add writeback connector 2018-07-05 15:19:03 +01:00
malidp_crtc.c drm: mali-dp: Add writeback connector 2018-07-05 15:19:03 +01:00
malidp_drv.c drm/arm/mali-dp: Add a loop around the second set CVAL and try 5 times 2019-06-25 11:35:58 +08:00
malidp_drv.h drm: mali-dp: Add debugfs file for reporting internal errors 2018-07-05 15:19:05 +01:00
malidp_hw.c drm/malidp: Fix writeback in NV12 2018-09-21 10:55:00 +01:00
malidp_hw.h drm/malidp: Fix writeback in NV12 2018-09-21 10:55:00 +01:00
malidp_mw.c drm/arm/mali: make malidp_mw_connector_helper_funcs static 2020-01-17 19:47:15 +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:14:54 +02:00
malidp_regs.h drm/malidp: Fix writeback in NV12 2018-09-21 10:55:00 +01:00