diff options
| author | Dan Carpenter <dan.carpenter@oracle.com> | 2015-12-15 13:12:29 +0300 |
|---|---|---|
| committer | Luis Henriques <luis.henriques@canonical.com> | 2016-01-25 10:43:50 +0000 |
| commit | df3f4f7cb4f412941f6cfe96295ca85a965e04ee (patch) | |
| tree | 15ca7b228f9e921edebc91e6736b614557583932 /include/linux/attribute_container.h | |
| parent | 504507b13779118a9cd10787c1822f861d32b269 (diff) | |
amd-xgbe: fix a couple timeout loops
commit c7557e6a56510ff6636d40ad4ff64a3ef7d9e197 upstream.
At the end of the loop we test "if (!count)" but because "count--" is
a post-op then the loop will end with count set to -1. I have fixed
this by changing it to --count.
Fixes: c5aa9e3b8156 ('amd-xgbe: Initial AMD 10GbE platform driver')
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/attribute_container.h')
0 files changed, 0 insertions, 0 deletions
