diff options
author | 2020-10-15 17:47:24 +0000 | |
---|---|---|
committer | 2020-10-15 17:47:24 +0000 | |
commit | 3f3b0cb236bde6ea6f3c9039bfa97fe03962d341 (patch) | |
tree | 3033da2119a1f613f6d953082741d495268047dc | |
parent | _exit(2), execve(2): tweak per-process interval timer cancellation (diff) | |
download | wireguard-openbsd-3f3b0cb236bde6ea6f3c9039bfa97fe03962d341.tar.xz wireguard-openbsd-3f3b0cb236bde6ea6f3c9039bfa97fe03962d341.zip |
Ensure resid is correctly set in the INQUIRY case.
-rw-r--r-- | sys/dev/pv/hvs.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/dev/pv/hvs.c b/sys/dev/pv/hvs.c index 84b43e5edd4..8ac3ce1348a 100644 --- a/sys/dev/pv/hvs.c +++ b/sys/dev/pv/hvs.c @@ -593,6 +593,7 @@ fixup_inquiry(struct scsi_xfer *xs, struct hvs_srb *srb) resplen = srb->srb_datalen >= SID_SCSI2_HDRLEN ? SID_SCSI2_HDRLEN + inq->additional_length : 0; datalen = MIN(resplen, srb->srb_datalen); + xs->resid = xs->datalen - datalen; /* Fixup wrong response from WS2012 */ if ((sc->sc_proto == HVS_PROTO_VERSION_WIN8_1 || |