diff options
author | Kenneth R Westerback <krw@cvs.openbsd.org> | 2020-09-05 13:05:08 +0000 |
---|---|---|
committer | Kenneth R Westerback <krw@cvs.openbsd.org> | 2020-09-05 13:05:08 +0000 |
commit | 9d23d7af058196d21315bc17c148373f3f37addf (patch) | |
tree | 835d97b1baa14c8356b190c25e1586749d0489ec /sys/dev/sdmmc | |
parent | effa0610c5950c5f9c7007ef4eb42c17056cac33 (diff) |
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/sdmmc')
-rw-r--r-- | sys/dev/sdmmc/sdmmc_scsi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/sdmmc/sdmmc_scsi.c b/sys/dev/sdmmc/sdmmc_scsi.c index 38609ec53fc..b5f45672563 100644 --- a/sys/dev/sdmmc/sdmmc_scsi.c +++ b/sys/dev/sdmmc/sdmmc_scsi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: sdmmc_scsi.c,v 1.56 2020/09/03 12:41:29 krw Exp $ */ +/* $OpenBSD: sdmmc_scsi.c,v 1.57 2020/09/05 13:05:07 krw Exp $ */ /* * Copyright (c) 2006 Uwe Stuehler <uwe@openbsd.org> @@ -438,7 +438,7 @@ sdmmc_inquiry(struct scsi_xfer *xs) inq.dev_qual2 = SID_REMOVABLE; inq.version = SCSI_REV_2; inq.response_format = SID_SCSI2_RESPONSE; - inq.additional_length = 32; + inq.additional_length = SID_SCSI2_ALEN; memcpy(inq.vendor, vendor, sizeof(inq.vendor)); memcpy(inq.product, product, sizeof(inq.product)); memcpy(inq.revision, revision, sizeof(inq.revision)); |