Files
linux/drivers/atm
Colin Ian King 364f376146 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:06:59 +01:00
..
2016-12-05 14:53:46 -05:00
2011-03-31 11:26:23 -03:00
2015-01-18 00:28:41 -05:00
2017-12-14 09:28:24 +01:00
2015-06-10 22:46:34 -07:00
2005-04-16 15:20:36 -07:00
2011-03-31 11:26:23 -03:00
2013-02-08 14:22:05 -05:00
2005-04-16 15:20:36 -07:00
2015-12-29 15:32:24 -05:00
2012-03-28 18:30:03 +01:00
2005-04-16 15:20:36 -07:00
2005-04-16 15:20:36 -07:00
2011-07-26 16:49:47 -07:00
2005-04-16 15:20:36 -07:00
2018-07-22 14:27:36 +02:00
2005-04-16 15:20:36 -07:00