diff options
| -rw-r--r-- | sys/cam/scsi/scsi_ch.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/cam/scsi/scsi_ch.c b/sys/cam/scsi/scsi_ch.c index b7941b971886..c79dd992d804 100644 --- a/sys/cam/scsi/scsi_ch.c +++ b/sys/cam/scsi/scsi_ch.c @@ -1157,6 +1157,8 @@ chgetelemstatus(struct cam_periph *periph, * Fill in the user status array. */ st_hdr = (struct read_element_status_header *)data; + pg_hdr = (struct read_element_status_page_header *)((uintptr_t)st_hdr + + sizeof(struct read_element_status_header)); avail = scsi_2btoul(st_hdr->count); if (avail != cesr->cesr_element_count) { |
