linux_dsm_epyc7002/drivers/gpu/drm/arm
Colin Ian King 5f368ddea6 drm/arm: fix unintentional integer overflow on left shift
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
2020-06-19 13:40:06 +01:00
..
display drm/komeda: Set GEM CMA functions with DRM_GEM_CMA_DRIVER_OPS_WITH_DUMB_CREATE 2020-06-10 09:03:54 +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: Set GEM CMA functions with DRM_GEM_CMA_DRIVER_OPS 2020-06-10 09:02:21 +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
Kconfig drm/arm: Kconfig annotate drivers as COMPILE_TEST 2020-06-15 14:55:21 +01:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
malidp_crtc.c drm/arm: drop use of drmP.h 2019-08-14 18:31:15 +02:00
malidp_drv.c drm/malidp: convert platform driver to use dev_groups 2020-06-15 14:56:09 +01:00
malidp_drv.h drm/arm: drop use of drmP.h 2019-08-14 18:31:15 +02:00
malidp_hw.c drm/arm/mali-dp: Add display QoS interface configuration for Mali DP500 2019-10-08 16:13:36 +01:00
malidp_hw.h drm/arm/mali-dp: Add display QoS interface configuration for Mali DP500 2019-10-08 16:13:36 +01:00
malidp_mw.c drm/arm/mali: make malidp_mw_connector_helper_funcs static 2019-12-20 15:23:51 +00: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-06-19 13:40:06 +01:00
malidp_regs.h drm/arm/mali-dp: Add display QoS interface configuration for Mali DP500 2019-10-08 16:13:36 +01:00