numam-dpdk/drivers
Stephen Hemminger 211262d925 net/bnxt: fix firmware version query
UBSan testing revealed undefined shift here.

The firmware returns the version in bytes; and shifting a 8 bit
quantity here can lead to undefined behaviour or truncation.
The fix is to promote the bytes to 32 bit before shifting.

Bugzilla ID: 838
Fixes: 9a891c1764 ("net/bnxt: update HWRM to version 1.9.2")
Cc: stable@dpdk.org

Signed-off-by: Stephen Hemminger <stephen@networkplumber.org>
Acked-by: Somnath Kotur <somnath.kotur@broadcom.com>
Acked-by: Ajit Khaparde <ajit.khaparde@broadcom.com>
2021-11-03 05:12:29 +01:00
..
baseband drivers: remove direct access to interrupt handle 2021-10-25 21:20:12 +02:00
bus bus/pci: fix use after free on unplug 2021-11-04 15:13:41 +01:00
common raw/cnxk_bphy: support telemetry 2021-10-29 17:59:35 +02:00
compress devtools: forbid indent with tabs in Meson 2021-11-02 19:25:30 +01:00
crypto devtools: forbid indent with tabs in Meson 2021-11-02 19:25:30 +01:00
dma dma/idxd: fix truncated error code in status check 2021-10-27 17:01:56 +02:00
event drivers: remove direct access to interrupt handle 2021-10-25 21:20:12 +02:00
mempool mempool/cnxk: postpone devargs parsing 2021-10-29 16:09:25 +02:00
net net/bnxt: fix firmware version query 2021-11-03 05:12:29 +01:00
raw raw/cnxk_bphy: support telemetry 2021-10-29 17:59:35 +02:00
regex regex/mlx5: prevent double setup of queue pair 2021-11-03 23:15:10 +01:00
vdpa drivers: remove direct access to interrupt handle 2021-10-25 21:20:12 +02:00
meson.build raw/ioat: build only if dmadev not present 2021-10-22 22:40:58 +02:00