Cornelia Huck ab17b1fc75 s390x/vfio-ap: report correct error
If ioctl(..., VFIO_DEVICE_RESET) fails, we want to report errno
instead of ret (which is always -1 on error).

Fixes Coverity issue CID 1396176.

Reported-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Christian Borntraeger <borntraeger@de.ibm.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Reviewed-by: Tony Krowiak <akrowiak@linux.ibm.com>
Signed-off-by: Cornelia Huck <cohuck@redhat.com>
2018-11-05 09:55:01 +01:00
..
2018-11-02 14:03:33 +00:00
2018-10-25 20:17:12 +01:00
2018-10-29 12:59:15 +00:00
2018-10-24 06:44:59 -03:00
2018-10-24 06:44:59 -03:00
2018-10-19 13:44:13 +02:00
2018-11-05 09:55:01 +01:00
2018-10-26 17:17:32 +02:00