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: 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>
2016-04-20 23:07:33 -07:00
..
2016-03-18 23:14:15 -04:00
2016-03-10 10:30:21 +01:00
2016-03-17 21:05:01 -04:00
2016-04-04 16:24:13 -04:00
2016-03-23 14:35:31 -04:00
2016-03-13 22:08:01 -04:00
2016-03-13 22:40:24 -04:00
2016-03-13 22:40:24 -04:00
2016-03-17 21:05:01 -04:00
2016-03-13 22:40:24 -04:00
2016-03-01 15:54:31 -05:00