svn commit: r272597 - head/sys/cam/ctl
Alexander Motin
mav at FreeBSD.org
Mon Oct 6 07:01:33 UTC 2014
Author: mav
Date: Mon Oct 6 07:01:32 2014
New Revision: 272597
URL: https://svnweb.freebsd.org/changeset/base/272597
Log:
Fix length of Extended INQUIRY Data VPD page.
MFC after: 3 days
Modified:
head/sys/cam/ctl/ctl.c
Modified: head/sys/cam/ctl/ctl.c
==============================================================================
--- head/sys/cam/ctl/ctl.c Mon Oct 6 06:20:35 2014 (r272596)
+++ head/sys/cam/ctl/ctl.c Mon Oct 6 07:01:32 2014 (r272597)
@@ -9912,9 +9912,7 @@ ctl_inquiry_evpd_eid(struct ctl_scsiio *
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;
More information about the svn-src-all
mailing list