Colin Ian King cb12d72b27 atm: he: fix sign-extension overflow on large shift
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>
2019-01-17 11:27:00 -08:00
..
2019-01-11 12:25:40 -08:00
2018-12-19 09:40:13 +01:00
2019-01-12 13:40:51 -08:00
2019-01-12 13:40:51 -08:00
2018-12-31 17:32:35 -08:00
2018-12-29 08:20:44 -07:00
2018-12-27 10:43:24 -08:00
2019-01-05 11:28:39 -08:00
2019-01-12 10:52:40 -08:00
2018-12-28 20:54:57 -08:00
2018-12-29 13:03:29 -08:00
2019-01-11 00:15:04 +01:00
2018-12-28 13:19:59 -08:00
2019-01-15 06:24:36 +12:00
2018-12-25 14:52:50 -08:00
2019-01-05 11:30:37 -08:00
2018-12-28 16:52:18 -08:00
2019-01-15 06:24:36 +12:00
2019-01-15 06:26:28 +12:00
2019-01-12 13:40:51 -08:00
2019-01-12 10:52:40 -08:00
2019-01-05 11:23:17 -08:00
2018-12-29 13:03:29 -08:00
2018-12-24 12:06:56 +01:00
2019-01-01 13:24:31 -08:00
2019-01-14 05:49:35 +12:00
2018-12-28 14:48:06 -08:00
2018-12-31 13:06:30 -08:00
2019-01-14 05:47:48 +12:00
2018-12-28 20:54:57 -08:00
2019-01-14 05:45:28 +12:00
2019-01-15 06:21:10 +12:00
2019-01-01 13:16:45 -08:00
2018-12-29 13:40:29 -08:00