diff options
| author | Dan Carpenter <dan.carpenter@oracle.com> | 2015-12-15 16:56:16 +0300 |
|---|---|---|
| committer | Luis Henriques <luis.henriques@canonical.com> | 2016-01-25 10:43:50 +0000 |
| commit | a73b1c17611b69c903d5c0ee92c0a63c263080e1 (patch) | |
| tree | b2bcddb2d380049d5570c87d61b2beacabd4055d /include/linux/timerfd.h | |
| parent | df3f4f7cb4f412941f6cfe96295ca85a965e04ee (diff) | |
qlcnic: fix a timeout loop
commit 389e4e04ad2d4887c7bdd7c01a93d3dfa5c14a06 upstream.
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>
Signed-off-by: Luis Henriques <luis.henriques@canonical.com>
Diffstat (limited to 'include/linux/timerfd.h')
0 files changed, 0 insertions, 0 deletions
