linux/drivers/net/ethernet/intel/fm10k
Jacob Keller 540a5d8590 fm10k: fix possible null pointer deref after kcalloc
When writing a new default redirection table, we needed to populate
a new RSS table using ethtool_rxfh_indir_default. We populated this
table into a region of memory allocated using kcalloc, but never checked
this for NULL. Fix this by moving the default table generation into
fm10k_write_reta. If this function is passed a table, use it. Otherwise,
generate the default table using ethtool_rxfh_indir_default, 4 at at
time.

Fixes: 0ea7fae440 ("fm10k: use ethtool_rxfh_indir_default for default redirection table")
Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
2016-04-20 23:07:33 -07:00
..
fm10k_common.c fm10k: Resolve various spelling errors and checkpatch warnings 2015-03-03 01:07:23 -08:00
fm10k_common.h fm10k: Add support for ptp to hw specific files 2014-09-23 03:59:22 -07:00
fm10k_dcbnl.c fm10k: conditionally compile DCB and DebugFS support 2015-12-13 15:27:59 -08:00
fm10k_debugfs.c fm10k: conditionally compile DCB and DebugFS support 2015-12-13 15:27:59 -08:00
fm10k_ethtool.c fm10k: fix possible null pointer deref after kcalloc 2016-04-20 23:07:33 -07:00
fm10k_iov.c fm10k: fix a minor typo in some comments 2016-04-05 12:49:38 -07:00
fm10k_main.c fm10k: fix possible null pointer deref after kcalloc 2016-04-20 23:07:33 -07:00
fm10k_mbx.c fm10k: cleanup mailbox code comments etc 2015-12-22 05:19:57 -08:00
fm10k_mbx.h fm10k: cleanup mailbox code comments etc 2015-12-22 05:19:57 -08:00
fm10k_netdev.c fm10k: Fix multicast mode sync issues 2016-04-20 23:06:22 -07:00
fm10k_pci.c fm10k: do not disable PCI device in fm10k_io_error_detected 2016-04-20 23:06:23 -07:00
fm10k_pf.c fm10k: Reset multicast mode when deleting lport 2016-04-20 23:07:33 -07:00
fm10k_pf.h fm10k: correctly handle LPORT_MAP error 2016-04-20 23:06:22 -07:00
fm10k_tlv.c fm10k: fix documentation of fm10k_tlv_parse_attr 2016-04-20 23:07:31 -07:00
fm10k_tlv.h fm10k: cleanup mailbox code comments etc 2015-12-22 05:19:57 -08:00
fm10k_type.h fm10k: use different name than FM10K_VLAN_CLEAR for override bit 2016-04-20 23:07:32 -07:00
fm10k_vf.c fm10k: update comment regarding reserved bits check 2016-04-20 23:07:32 -07:00
fm10k_vf.h fm10k: drop 1588 support 2016-04-20 23:06:22 -07:00
fm10k.h fm10k: correctly handle LPORT_MAP error 2016-04-20 23:06:22 -07:00
Makefile fm10k: drop 1588 support 2016-04-20 23:06:22 -07:00