summaryrefslogtreecommitdiff
path: root/sys/cam
diff options
context:
space:
mode:
authorMatt Jacob <mjacob@FreeBSD.org>2007-05-18 21:58:07 +0000
committerMatt Jacob <mjacob@FreeBSD.org>2007-05-18 21:58:07 +0000
commit1cd1670b4821688102affe0ff62f72d9c5792440 (patch)
tree1f804ea59b31453dafcf1dabcc12078f61ecf6d9 /sys/cam
parentd2ddf5d4b011f2673049820277637ef28807b138 (diff)
Notes
Diffstat (limited to 'sys/cam')
-rw-r--r--sys/cam/scsi/scsi_da.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/cam/scsi/scsi_da.c b/sys/cam/scsi/scsi_da.c
index b835a1991e3e..6b0793b697f0 100644
--- a/sys/cam/scsi/scsi_da.c
+++ b/sys/cam/scsi/scsi_da.c
@@ -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??? */