git: c3ea7bfc72b7 - main - cam: set reladr in scsi_read_capacity_16
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 05 Dec 2025 07:20:06 UTC
The branch main has been updated by imp:
URL: https://cgit.FreeBSD.org/src/commit/?id=c3ea7bfc72b712809228bb17b4c58b295b91920c
commit c3ea7bfc72b712809228bb17b4c58b295b91920c
Author: Warner Losh <imp@FreeBSD.org>
AuthorDate: 2025-12-05 07:11:18 +0000
Commit: Warner Losh <imp@FreeBSD.org>
CommitDate: 2025-12-05 07:13:22 +0000
cam: set reladr in scsi_read_capacity_16
The reladr field wasn't being set, so pmi and reladr args were
nops. That's OK, because they are passed as 0 in the one place in the
tree we use this.
Sponsored by: Netflix
---
sys/cam/scsi/scsi_all.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/sys/cam/scsi/scsi_all.c b/sys/cam/scsi/scsi_all.c
index 168cd17d3965..0ba4fa0c8978 100644
--- a/sys/cam/scsi/scsi_all.c
+++ b/sys/cam/scsi/scsi_all.c
@@ -8001,9 +8001,9 @@ scsi_read_capacity_16(struct ccb_scsiio *csio, uint32_t retries,
scsi_u64to8b(lba, scsi_cmd->addr);
scsi_ulto4b(rcap_buf_len, scsi_cmd->alloc_len);
if (pmi)
- reladr |= SRC16_PMI;
+ scsi_cmd->reladr |= SRC16_PMI;
if (reladr)
- reladr |= SRC16_RELADR;
+ scsi_cmd->reladr |= SRC16_RELADR;
}
void