]> www.infradead.org Git - users/jedix/linux-maple.git/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)
committerChuck Anderson <chuck.anderson@oracle.com>
Sun, 26 Feb 2017 06:04:14 +0000 (22:04 -0800)
commit6b55fba07c823a84abc06fcde0b9fcf1dbadb5b1
tree3bec466bb9028d7a782e0dc941a4fb41339293e1
parentdb4c460589964ec14a876a5af6a0de01b2f8aed8
fm10k: fix incorrect index calculation in fm10k_write_reta

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>
Orabug: 25394529
(cherry picked from commit 34875887f360d7bd0b7f0a89f7c6d65eca616ee3)
Signed-off-by: Jack Vogel <jack.vogel@oracle.com>
drivers/net/ethernet/intel/fm10k/fm10k_ethtool.c