numam-dpdk/drivers/net/cxgbe/base
Emmanuel Roullit dd995b23df net/cxgbe/base: initialize variable before reading EEPROM
data value could have been garbage if VPD access timed out for VPD read
request could not been issued.

Found with clang static analysis:
drivers/net/cxgbe/base/t4_hw.c:1577:22:
warning: The left operand of '&' is a garbage value
        } while ((stats_reg & 0x1) && --max_poll);
                  ~~~~~~~~~ ^

Fixes: fe0bd9ee5d ("net/cxgbe: support EEPROM access")
Cc: stable@dpdk.org

Signed-off-by: Emmanuel Roullit <emmanuel.roullit@gmail.com>
2017-01-30 22:18:26 +01:00
..
adapter.h net/cxgbe: use I/O device memory read/write API 2017-01-18 17:18:27 +01:00
common.h net/cxgbe: support register dump 2016-06-15 17:13:55 +02:00
t4_chip_type.h cxgbe/base: add hardware API for Chelsio T5 series adapters 2015-06-30 17:56:33 +02:00
t4_hw.c net/cxgbe/base: initialize variable before reading EEPROM 2017-01-30 22:18:26 +01:00
t4_hw.h net/cxgbe: support EEPROM access 2016-06-15 17:13:55 +02:00
t4_msg.h cxgbe/base: add hardware API for Chelsio T5 series adapters 2015-06-30 17:56:33 +02:00
t4_pci_id_tbl.h cxgbe: add more supported devices 2015-07-10 03:00:22 +02:00
t4_regs_values.h cxgbe: improve Rx performance 2015-07-10 02:59:52 +02:00
t4_regs.h cxgbe: optimize forwarding performance for 40G 2015-10-20 18:49:18 +02:00
t4fw_interface.h cxgbe/base: add hardware API for Chelsio T5 series adapters 2015-06-30 17:56:33 +02:00