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: ad49f8602fe8 ("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
..
2020-06-16 13:55:36 +02:00
2020-05-27 14:31:42 +03:00
2020-05-27 14:31:42 +03:00
2020-05-27 14:31:42 +03:00
2020-05-27 14:31:42 +03:00
2020-04-03 17:11:41 +02:00
2020-04-17 08:12:22 +02:00
2020-04-03 17:11:41 +02:00
2020-05-27 14:31:42 +03:00
2020-04-03 17:11:41 +02:00
2020-04-28 15:05:19 +02:00
2020-05-27 14:31:42 +03:00
2020-05-29 12:58:11 +02:00
2020-03-16 09:27:09 +01:00
2020-05-27 14:31:42 +03:00
2020-04-03 17:11:41 +02:00
2020-05-27 14:31:42 +03:00
2020-05-19 21:52:16 +01:00
2020-04-28 16:05:15 +02:00
2020-04-28 16:05:15 +02:00