summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/intel/fm10k/fm10k_vf.c
diff options
context:
space:
mode:
authorJacob Keller2016-04-07 17:21:20 +0200
committerJeff Kirsher2016-04-21 08:07:33 +0200
commit540a5d859010a239a99aba02a9fed7b255c0033e (patch)
tree46ac30ed48a61aa6723be7b5003b43f41adfc272 /drivers/net/ethernet/intel/fm10k/fm10k_vf.c
parentfm10k: Reset multicast mode when deleting lport (diff)
downloadkernel-qcow2-linux-540a5d859010a239a99aba02a9fed7b255c0033e.tar.gz
kernel-qcow2-linux-540a5d859010a239a99aba02a9fed7b255c0033e.tar.xz
kernel-qcow2-linux-540a5d859010a239a99aba02a9fed7b255c0033e.zip
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: 0ea7fae44094 ("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>
Diffstat (limited to 'drivers/net/ethernet/intel/fm10k/fm10k_vf.c')
0 files changed, 0 insertions, 0 deletions