diff options
| author | Warner Losh <imp@FreeBSD.org> | 2025-12-05 07:11:18 +0000 |
|---|---|---|
| committer | Warner Losh <imp@FreeBSD.org> | 2025-12-05 07:13:22 +0000 |
| commit | c3ea7bfc72b712809228bb17b4c58b295b91920c (patch) | |
| tree | 42eab861de21ac703faae357f41ce9f6b2ecb9da | |
| parent | ce8dc5b12451e9922ab827dfe3d10abcd6e85165 (diff) | |
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
| -rw-r--r-- | sys/cam/scsi/scsi_all.c | 4 |
1 files 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 |
