Files
linux/drivers/atm
Colin Ian King e0d7b0a2a5 atm: he: fix sign-extension overflow on large shift
[ Upstream commit cb12d72b27 ]

Shifting the 1 by exp by an int can lead to sign-extension overlow when
exp is 31 since 1 is an signed int and sign-extending this result to an
unsigned long long will set the upper 32 bits.  Fix this by shifting an
unsigned long.

Detected by cppcheck:
(warning) Shifting signed 32-bit value by 31 bits is undefined behaviour

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2019-02-27 10:08:57 +01:00
..
2017-08-09 22:43:50 -07:00
2017-08-09 22:43:50 -07:00
2017-11-30 09:26:32 -05:00
2018-06-12 16:19:22 -07:00
2015-01-18 00:28:41 -05:00
2018-06-30 18:44:38 +09:00