commit | 967628827f404b3063016c138ccc7b06c54350f8 | [log] [tgz] |
---|---|---|
author | Dan Carpenter <dan.carpenter@oracle.com> | Thu Dec 17 15:27:07 2015 +0300 |
committer | Alex Williamson <alex.williamson@redhat.com> | Mon Dec 21 15:28:11 2015 -0700 |
tree | 40c485cbdddac85ccec57a2c0dfb7944317eae5c | |
parent | 4ef7675344d687a0ef5b0d7c0cee12da005870c0 [diff] |
VFIO: platform: reset: fix a warning message condition This loop ends with count set to -1 and not zero so the warning message isn't printed when it should be. I've fixed this by change the postop to a preop. Fixes: 0990822c9866 ('VFIO: platform: reset: AMD xgbe reset module') Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Reviewed-by: Eric Auger <eric.auger@linaro.org> Signed-off-by: Alex Williamson <alex.williamson@redhat.com>