Dan Carpenter 389e4e04ad 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>
2015-12-15 13:11:05 -05:00
..
2015-12-15 13:11:05 -05:00
2015-08-13 21:12:17 -07:00
2015-11-15 17:09:23 -05:00
2015-11-05 13:15:12 -08:00
2015-11-17 14:39:29 -05:00
2015-11-04 17:32:42 -08:00
2015-10-21 19:36:10 -07:00
2015-12-08 22:39:03 -05:00
2015-10-13 04:55:07 -07:00
2015-11-04 17:32:42 -08:00