Fix error translation broken in r279658.

Reported by:	grehan
MFC after:	2 weeks
This commit is contained in:
Alexander Motin 2015-03-05 20:24:34 +00:00
parent 20254bfa69
commit 371f1d88b6

View File

@ -246,12 +246,11 @@ pci_vtblk_proc(struct pci_vtblk_softc *sc, struct vqueue_info *vq)
}
/* convert errno into a virtio block error return */
if (err < 0) {
if (err == -ENOSYS)
*status = VTBLK_S_UNSUPP;
else
*status = VTBLK_S_IOERR;
} else
if (err == -ENOSYS)
*status = VTBLK_S_UNSUPP;
else if (err != 0)
*status = VTBLK_S_IOERR;
else
*status = VTBLK_S_OK;
/*