Fix error translation broken in r279658.
Reported by: grehan MFC after: 2 weeks
This commit is contained in:
parent
20254bfa69
commit
371f1d88b6
@ -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;
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user