linux/drivers/net/ethernet/intel
Neerav Parikh 71f6a85a58 i40e: Fix static checker warning
This patch fixes the following static checker warning:

  drivers/net/ethernet/intel/i40e/i40e_dcb.c:342
  i40e_lldp_to_dcb_config() warn: 'tlv' can't be NULL.

Exit criteria from the while loop is encountering LLDP END
LV or if the TLV length goes beyond the buffer length.

Change-ID: I7548b16db90230ec2ba0fa791b0343ca8b7dd5bb
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Neerav Parikh <Neerav.Parikh@intel.com>
Acked-by: Shannon Nelson <shannon.nelson@intel.com>
Signed-off-by: Kevin Scott <kevin.c.scott@intel.com>
Signed-off-by: Catherine Sullivan <catherine.sullivan@intel.com>
Tested-by: Kavindya Deegala <kavindya.s.deegala@intel.com>
Tested-By: Jack Morgan<jack.morgan@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
2014-03-06 18:41:50 -08:00
..
e1000 drivers/net: delete non-required instances of include <linux/init.h> 2014-01-16 11:53:26 -08:00
e1000e e1000e: Use pci_enable_msix_range() instead of pci_enable_msix() 2014-02-18 15:33:31 -05:00
i40e i40e: Fix static checker warning 2014-03-06 18:41:50 -08:00
i40evf i40e/i40evf: i40e implementation for skb_set_hash 2014-03-06 18:41:31 -08:00
igb igb: Update license text to remove FSF address and update copyright. 2014-02-26 15:54:52 -05:00
igbvf igbvf: Use pci_enable_msix_range() instead of pci_enable_msix() 2014-02-18 15:33:31 -05:00
ixgb drivers/net: delete non-required instances of include <linux/init.h> 2014-01-16 11:53:26 -08:00
ixgbe ixgbe: implement SIOCGHWTSTAMP ioctl 2014-03-02 19:06:44 -05:00
ixgbevf ixgbevf: add check for CHECKSUM_PARTIAL when doing TSO 2014-02-28 12:40:57 -05:00
e100.c e100: Fix "disabling already-disabled device" warning 2014-01-30 16:46:14 -08:00
Kconfig i40e: add DCB option to Kconfig 2014-01-17 19:13:04 -08:00
Makefile