]> git.baikalelectronics.ru Git - kernel.git/commit
netxen: fix incorrect loop counter decrement
authorColin Ian King <colin.king@canonical.com>
Fri, 18 Aug 2017 13:12:06 +0000 (14:12 +0100)
committerDavid S. Miller <davem@davemloft.net>
Fri, 18 Aug 2017 17:58:33 +0000 (10:58 -0700)
commit4bc8de6aecc7b3ed1cfbe8e970b718e59cd22719
treeadf2dd18549834743e6e0d8ec8f805b56def2ac1
parent6352275c63f0de96c291c5960678ad86bd8252c4
netxen: fix incorrect loop counter decrement

The loop counter k is currently being decremented from zero which
is incorrect. Fix this by incrementing k instead

Detected by CoverityScan, CID#401847 ("Infinite loop")

Fixes: 7b6e9b7c05ad ("netxen_nic: fw dump support")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/qlogic/netxen/netxen_nic_hw.c