linux/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
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
hdlcd_regs.h
Kconfig drm/arm: Kconfig annotate drivers as COMPILE_TEST 2020-06-15 14:55:21 +01:00
Makefile
malidp_crtc.c
malidp_drv.c drm/malidp: convert platform driver to use dev_groups 2020-06-15 14:56:09 +01:00
malidp_drv.h
malidp_hw.c
malidp_hw.h
malidp_mw.c
malidp_mw.h
malidp_planes.c drm/arm: fix unintentional integer overflow on left shift 2020-06-19 13:40:06 +01:00
malidp_regs.h