]> git.baikalelectronics.ru Git - kernel.git/commit
VFIO: platform: reset: fix a warning message condition
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 17 Dec 2015 12:27:07 +0000 (15:27 +0300)
committerAlex Williamson <alex.williamson@redhat.com>
Mon, 21 Dec 2015 22:28:11 +0000 (15:28 -0700)
commitc0e20dee630ddce0450021bc4831be5b63be34dd
tree40c485cbdddac85ccec57a2c0dfb7944317eae5c
parent76066219c1aa9865e8fc88181b8dc2f6356df9ce
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: 0b50d654ce5e ('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>
drivers/vfio/platform/reset/vfio_platform_amdxgbe.c