qede: Prevent index problems in loopback test
authorSudarsana Reddy Kalluru <Sudarsana.Kalluru@cavium.com>
Mon, 20 Feb 2017 20:43:37 +0000 (22:43 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 21 Oct 2017 15:21:36 +0000 (17:21 +0200)
commita506d326cbec565f2871e376c9702f9f9a047a37
treedec20623af5d4f59e245ff5167918376544bb56c
parentf6a72741241f27ccc880b89d3923e7c829facd9a
qede: Prevent index problems in loopback test

[ Upstream commit afe981d664aeeebc8d1bcbd7d2070b5432edaecb ]

Driver currently utilizes the same loop variable in two
nested loops.

Signed-off-by: Sudarsana Reddy Kalluru <Sudarsana.Kalluru@cavium.com>
Signed-off-by: Yuval Mintz <Yuval.Mintz@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/qlogic/qede/qede_ethtool.c