--- src/sys/bus/cam/cam_periph.c 2005/03/15 20:42:12 1.9 +++ src/sys/bus/cam/cam_periph.c 2005/05/28 01:16:30 1.10 @@ -105,7 +105,7 @@ cam_periph_alloc(periph_ctor_t *periph_c return (CAM_REQ_INVALID); } - periph = malloc(sizeof(*periph), M_DEVBUF, M_INTWAIT); + periph = malloc(sizeof(*periph), M_DEVBUF, M_INTWAIT | M_ZERO); init_level++; @@ -117,7 +117,6 @@ cam_periph_alloc(periph_ctor_t *periph_c path_id = xpt_path_path_id(path); target_id = xpt_path_target_id(path); lun_id = xpt_path_lun_id(path); - bzero(periph, sizeof(*periph)); cam_init_pinfo(&periph->pinfo); periph->periph_start = periph_start; periph->periph_dtor = periph_dtor;