diff options
author | mav <mav@FreeBSD.org> | 2014-10-06 07:01:32 +0000 |
---|---|---|
committer | mav <mav@FreeBSD.org> | 2014-10-06 07:01:32 +0000 |
commit | 35f5c947025bbbfba699656c6cd9eec2e7874f65 (patch) | |
tree | 21ecead372173f127270876a5758766fd01365a6 | |
parent | 59a46e800a0d757ed6fa936bd4688be62efbc67f (diff) | |
download | FreeBSD-src-35f5c947025bbbfba699656c6cd9eec2e7874f65.zip FreeBSD-src-35f5c947025bbbfba699656c6cd9eec2e7874f65.tar.gz |
Fix length of Extended INQUIRY Data VPD page.
MFC after: 3 days
-rw-r--r-- | sys/cam/ctl/ctl.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sys/cam/ctl/ctl.c b/sys/cam/ctl/ctl.c index 3627a50..eaba507 100644 --- a/sys/cam/ctl/ctl.c +++ b/sys/cam/ctl/ctl.c @@ -9912,9 +9912,7 @@ ctl_inquiry_evpd_eid(struct ctl_scsiio *ctsio, int alloc_len) lun = (struct ctl_lun *)ctsio->io_hdr.ctl_private[CTL_PRIV_LUN].ptr; - data_len = sizeof(struct scsi_vpd_mode_page_policy) + - sizeof(struct scsi_vpd_mode_page_policy_descr); - + data_len = sizeof(struct scsi_vpd_extended_inquiry_data); ctsio->kern_data_ptr = malloc(data_len, M_CTL, M_WAITOK | M_ZERO); eid_ptr = (struct scsi_vpd_extended_inquiry_data *)ctsio->kern_data_ptr; ctsio->kern_sg_entries = 0; |