Skip to content

Commit

Permalink
Fix length of Extended INQUIRY Data VPD page.
Browse files Browse the repository at this point in the history
MFC after:	3 days
  • Loading branch information
amotin committed Oct 6, 2014
1 parent 1d1b55f commit 5554eb9
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions sys/cam/ctl/ctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 5554eb9

Please sign in to comment.