vfio: fix ioctl error handling