diff options
author | 2020-09-05 13:05:06 +0000 | |
---|---|---|
committer | 2020-09-05 13:05:06 +0000 | |
commit | 3ca8dabf571cb4518c56816a558429e4482a40d0 (patch) | |
tree | 8eb4de707ceaeb49bd59c07e5583ccabbbd52eb9 /sys/dev/softraid.c | |
parent | httpd(8) uses TLSv1.3 and TLSv1.2 by default (diff) | |
download | wireguard-openbsd-3ca8dabf571cb4518c56816a558429e4482a40d0.tar.xz wireguard-openbsd-3ca8dabf571cb4518c56816a558429e4482a40d0.zip |
Replace '32' with SID_SCSI2_ALEN (a.k.a. 31) when building emulated INQUIRY
responses. This is what the SCSI specifications say is the correct value and
already used in several cases.
Diffstat (limited to 'sys/dev/softraid.c')
-rw-r--r-- | sys/dev/softraid.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/softraid.c b/sys/dev/softraid.c index 0fc0003a768..78e06f86c3c 100644 --- a/sys/dev/softraid.c +++ b/sys/dev/softraid.c @@ -1,4 +1,4 @@ -/* $OpenBSD: softraid.c,v 1.413 2020/09/03 12:41:28 krw Exp $ */ +/* $OpenBSD: softraid.c,v 1.414 2020/09/05 13:05:06 krw Exp $ */ /* * Copyright (c) 2007, 2008, 2009 Marco Peereboom <marco@peereboom.us> * Copyright (c) 2008 Chris Kuethe <ckuethe@openbsd.org> @@ -4027,7 +4027,7 @@ sr_raid_inquiry(struct sr_workunit *wu) inq.dev_qual2 = 0; inq.version = SCSI_REV_2; inq.response_format = SID_SCSI2_RESPONSE; - inq.additional_length = 32; + inq.additional_length = SID_SCSI2_ALEN; inq.flags |= SID_CmdQue; strlcpy(inq.vendor, sd->sd_meta->ssdi.ssd_vendor, sizeof(inq.vendor)); |