linux-stable/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
..
.gitignore
adummy.c
ambassador.c atm: ambassador: use NULL instead of 0 for pointer 2014-02-19 16:39:10 -05:00
ambassador.h
atmtcp.c drivers/atm/atmtcp.c: fix error return code 2014-08-07 16:02:57 -07:00
eni.c atm: fix improper return value 2016-12-05 14:53:46 -05:00
eni.h
firestream.c atm: firestream: add more reserved strings 2016-05-31 11:52:59 -07:00
firestream.h atm: firestream: remove duplicate define 2013-10-21 18:46:46 -04:00
fore200e.c atm: fore200e: Do not drop const qualifier 2016-08-18 23:46:42 -07:00
fore200e.h
he.c atm: he: fix sign-extension overflow on large shift 2019-02-27 10:06:59 +01:00
he.h atm: remove deprecated use of pci api 2015-01-18 00:28:41 -05:00
horizon.c atm: horizon: Fix irq release error 2017-12-14 09:28:24 +01:00
horizon.h
idt77105.c atm: idt77105: Use setup_timer 2015-06-10 22:46:34 -07:00
idt77105.h
idt77252.c atm: remove deprecated use of pci api 2015-01-18 00:28:41 -05:00
idt77252.h
idt77252_tables.h
iphase.c atm: iphase: fix newline escape and minor tweak to source formatting 2016-09-15 19:15:55 -04:00
iphase.h atm/iphase: rename fregt_t -> ffreg_t 2013-02-08 14:22:05 -05:00
Kconfig
lanai.c atm: lanai: set error code when ioremap fails 2016-12-05 13:27:33 -05:00
Makefile
midway.h
nicstar.c ATM-nicstar: Refactor a dev_alloc_skb() call in dequeue_rx() 2016-09-10 21:45:25 -07:00
nicstar.h
nicstarmac.c
nicstarmac.copyright
solos-attrlist.c
solos-pci.c atm: solos-pci: use to_pci_dev() 2015-12-29 15:32:24 -05:00
suni.c
suni.h
tonga.h
uPD98401.h
uPD98402.c
uPD98402.h
zatm.c atm: zatm: Fix potential Spectre v1 2018-07-22 14:27:36 +02:00
zatm.h
zeprom.h