]> git.hungrycats.org Git - linux/commit
fm10k: fix incorrect index calculation in fm10k_write_reta
authorJacob Keller <jacob.e.keller@intel.com>
Mon, 18 Apr 2016 22:45:00 +0000 (15:45 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 7 Oct 2016 13:21:23 +0000 (15:21 +0200)
commit53cf454058e67f009dc2149939f354e74b65996b
tree4b68612d6ed522e2b1d0752275458a7de700f049
parentb78ac0135ecc22ffa37762fcb39775e718eaa50d
fm10k: fix incorrect index calculation in fm10k_write_reta

commit 34875887f360d7bd0b7f0a89f7c6d65eca616ee3 upstream.

The index calculated when looping through the indir array passed to
fm10k_write_reta was incorrectly calculated as the first part i needs to
be multiplied by 4.

Fixes: 0cfea7a65738 ("fm10k: fix possible null pointer deref after kcalloc", 2016-04-13)
Signed-off-by: Jacob Keller <jacob.e.keller@intel.com>
Tested-by: Krishneil Singh <Krishneil.k.singh@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/intel/fm10k/fm10k_ethtool.c