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)
commita120d9ab65354727559b9db75ded8071b7ef19e2
treeadf2dd18549834743e6e0d8ec8f805b56def2ac1
parenteac2c68d663effb077210218788952b5a0c1f60e
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: 83f18a557c6d ("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