commit | 389e4e04ad2d4887c7bdd7c01a93d3dfa5c14a06 | [log] [tgz] |
---|---|---|
author | Dan Carpenter <dan.carpenter@oracle.com> | Tue Dec 15 16:56:16 2015 +0300 |
committer | David S. Miller <davem@davemloft.net> | Tue Dec 15 13:11:05 2015 -0500 |
tree | 8f5de9d64c1b5c2b5db94774ddd9c0b586cee172 | |
parent | fe0be35e2cb6f8f43ae70ecc9fb372142fdf096b [diff] |
qlcnic: fix a timeout loop The problem here is that at the end of the loop we test for if idc->vnic_wait_limit is zero, but since idc->vnic_wait_limit-- is a post-op, it actually ends up set to (u8)-1. I have fixed this by moving the decrement inside the loop. Fixes: 486a5bc77a4a ('qlcnic: Add support for 83xx suspend and resume.') Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: David S. Miller <davem@davemloft.net>