linux/drivers/net/ethernet/chelsio
Colin Ian King dd2c796773 cxgb4: Fix unintentional sign extension issues
The shifting of the u8 integers f->fs.nat_lip[] by 24 bits to
the left will be promoted to a 32 bit signed int and then
sign-extended to a u64. In the event that the top bit of the u8
is set then all then all the upper 32 bits of the u64 end up as
also being set because of the sign-extension. Fix this by
casting the u8 values to a u64 before the 24 bit left shift.

Addresses-Coverity: ("Unintended sign extension")
Fixes: 12b276fbf6 ("cxgb4: add support to create hash filters")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2021-04-12 13:13:17 -07:00
..
cxgb chelsio: cxgb: Disable the card on error in threaded interrupt 2021-02-03 17:41:01 -08:00
cxgb3 cxgb3: fix error return code in t3_sge_alloc_qset() 2020-12-02 18:03:53 -08:00
cxgb4 cxgb4: Fix unintentional sign extension issues 2021-04-12 13:13:17 -07:00
cxgb4vf net: don't include ethtool.h from netdevice.h 2020-11-23 17:27:04 -08:00
inline_crypto ch_ktls: fix enum-conversion warning 2021-03-24 12:35:39 -07:00
libcxgb net/chelsio: Delete drive and module versions 2020-03-03 17:54:54 -08:00
Kconfig cxgb4: Fix build failure when CONFIG_TLS=m 2020-11-21 13:10:18 -08:00
Makefile chelsio/chtls: separate chelsio tls driver from crypto driver 2020-08-21 14:15:15 -07:00