diff options
author | Jacob Keller <jacob.e.keller@intel.com> | 2016-04-07 18:21:20 +0300 |
---|---|---|
committer | Jeff Kirsher <jeffrey.t.kirsher@intel.com> | 2016-04-21 09:07:33 +0300 |
commit | 540a5d859010a239a99aba02a9fed7b255c0033e (patch) | |
tree | 46ac30ed48a61aa6723be7b5003b43f41adfc272 /drivers/clocksource/arm_global_timer.c | |
parent | 11ec36a974f59c99e8a4ff7040026569a43ab567 (diff) | |
download | linux-540a5d859010a239a99aba02a9fed7b255c0033e.tar.xz |
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/clocksource/arm_global_timer.c')
0 files changed, 0 insertions, 0 deletions