Zero scsi_readcapacity allocations so we can really
tell if there has been data returned (for some broken residual checking points). MFC after: 3 days
This commit is contained in:
parent
8a6eb18a69
commit
bcf0956d8d
@ -1303,9 +1303,8 @@ dastart(struct cam_periph *periph, union ccb *start_ccb)
|
||||
struct ccb_scsiio *csio;
|
||||
struct scsi_read_capacity_data *rcap;
|
||||
|
||||
rcap = (struct scsi_read_capacity_data *)malloc(sizeof(*rcap),
|
||||
M_SCSIDA,
|
||||
M_NOWAIT);
|
||||
rcap = (struct scsi_read_capacity_data *)
|
||||
malloc(sizeof(*rcap), M_SCSIDA, M_NOWAIT|M_ZERO);
|
||||
if (rcap == NULL) {
|
||||
printf("dastart: Couldn't malloc read_capacity data\n");
|
||||
/* da_free_periph??? */
|
||||
@ -1330,7 +1329,7 @@ dastart(struct cam_periph *periph, union ccb *start_ccb)
|
||||
struct scsi_read_capacity_data_long *rcaplong;
|
||||
|
||||
rcaplong = (struct scsi_read_capacity_data_long *)
|
||||
malloc(sizeof(*rcaplong), M_SCSIDA, M_NOWAIT);
|
||||
malloc(sizeof(*rcaplong), M_SCSIDA, M_NOWAIT|M_ZERO);
|
||||
if (rcaplong == NULL) {
|
||||
printf("dastart: Couldn't malloc read_capacity data\n");
|
||||
/* da_free_periph??? */
|
||||
|
Loading…
Reference in New Issue
Block a user