vfio: platform: check reset call return code during release
authorSinan Kaya <okaya@codeaurora.org>
Tue, 19 Jul 2016 13:01:49 +0000 (09:01 -0400)
committerAlex Williamson <alex.williamson@redhat.com>
Tue, 19 Jul 2016 16:54:45 +0000 (10:54 -0600)
commit0991bbdbf5b85bd14a26e783f087b0f2913c93b1
treedd30472250b3624da8d809f58fbe309d496f8ac5
parente99442323f33470677deeed35619313b05837f35
vfio: platform: check reset call return code during release

Release call is ignoring the return code from reset call and can
potentially continue even though reset call failed.

If reset_required module parameter is set, this patch is going
to validate the return code and will cause stack dump with
WARN_ON and warn the user of failure.

Signed-off-by: Sinan Kaya <okaya@codeaurora.org>
Reviewed-by: Eric Auger <eric.auger@redhat.com>
Reviewed-by: Baptiste Reynal <b.reynal@virtualopensystems.com>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
drivers/vfio/platform/vfio_platform_common.c