summaryrefslogtreecommitdiff
path: root/sys/scsi
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2020-09-12 17:03:52 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2020-09-12 17:03:52 +0000
commitc5840e3b3130965c91f1817bb9f5643e3b8ba021 (patch)
tree808de257f7d1eef36c35547847eb49569356ccff /sys/scsi
parent8070a7256fd6c011b81e1d5a29904a3274e69884 (diff)
Use SID_SCSI2_RESPONSE instead of '2' when checking INQUIRY data format.
Diffstat (limited to 'sys/scsi')
-rw-r--r--sys/scsi/safte.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/scsi/safte.c b/sys/scsi/safte.c
index 48a44b41853..ad805e7ddf9 100644
--- a/sys/scsi/safte.c
+++ b/sys/scsi/safte.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: safte.c,v 1.64 2020/09/12 16:51:04 krw Exp $ */
+/* $OpenBSD: safte.c,v 1.65 2020/09/12 17:03:51 krw Exp $ */
/*
* Copyright (c) 2005 David Gwynne <dlg@openbsd.org>
@@ -119,7 +119,7 @@ safte_match(struct device *parent, void *match, void *aux)
if ((inq->device & SID_TYPE) != T_PROCESSOR ||
SID_ANSII_REV(inq) != SCSI_REV_2 ||
- SID_RESPONSE_FORMAT(inq) != 2)
+ SID_RESPONSE_FORMAT(inq) != SID_SCSI2_RESPONSE)
return 0;
if (inq->additional_length < SID_SCSI2_ALEN + sizeof(*si))