diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2015-12-17 15:27:07 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-05-10 10:26:12 +0200 |
commit | 50e3059e6e542b1d43090b41cd46ddd97c07bdce (patch) | |
tree | ac8a2ef9816c6fea007e51a0400c75b844efbfc7 /drivers/net/ethernet/moxa/moxart_ether.c | |
parent | 12e4db13ea5c4baf83950dbb74663ad5fb0ac820 (diff) |
VFIO: platform: reset: fix a warning message condition
commit 967628827f404b3063016c138ccc7b06c54350f8 upstream.
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/net/ethernet/moxa/moxart_ether.c')
0 files changed, 0 insertions, 0 deletions