summaryrefslogtreecommitdiff
path: root/sys/dev/pv
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2019-08-30 17:41:19 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2019-08-30 17:41:19 +0000
commit8d6aeba2a8c32a1119388f3144c6ec2d786848ac (patch)
treeff2d9fed071e3031dd088d447a15cc3171bc118d /sys/dev/pv
parentc8d637b444db0359a86937af2d6c8b3ca575720b (diff)
Don't use misleadingly named SCSISPC() which returns SCSI version not
SPC version. Use raw data in version field to check the SPC level until SCSISPC() is straightened out. Actually a bit clearer to read as the raw data is what is manipulated in adjacent code.
Diffstat (limited to 'sys/dev/pv')
-rw-r--r--sys/dev/pv/hvs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/pv/hvs.c b/sys/dev/pv/hvs.c
index bd13d068bce..feb47573446 100644
--- a/sys/dev/pv/hvs.c
+++ b/sys/dev/pv/hvs.c
@@ -610,7 +610,7 @@ fixup_inquiry(struct scsi_xfer *xs, struct hvs_srb *srb)
scsi_strvis(vendor, inq->vendor, sizeof(vendor));
if ((sc->sc_proto == HVS_PROTO_VERSION_WIN8_1 ||
sc->sc_proto == HVS_PROTO_VERSION_WIN8) &&
- SCSISPC(inq->version) == 2 &&
+ ((inq->version & SID_ANSII) == 0x04) &&
!strncmp(vendor, "Msft", 4))
inq->version = 0x05; /* SPC-3 */
}