aboutsummaryrefslogtreecommitdiff
path: root/sys/dev
diff options
context:
space:
mode:
authorDavid Malone <dwmalone@FreeBSD.org>2000-12-03 20:46:54 +0000
committerDavid Malone <dwmalone@FreeBSD.org>2000-12-03 20:46:54 +0000
commitea8b5a9ae99a74137eaf090d75a8e1d07cd088ab (patch)
tree0bb1fe62811397465fdc8f09e9f06d6ee022c8b9 /sys/dev
parentd6deedefeb8e7eb22488b712e810bcf3cd86a829 (diff)
Notes
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/isp/isp_freebsd.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/dev/isp/isp_freebsd.c b/sys/dev/isp/isp_freebsd.c
index c3157b30c980..66621e35e025 100644
--- a/sys/dev/isp/isp_freebsd.c
+++ b/sys/dev/isp/isp_freebsd.c
@@ -319,11 +319,10 @@ create_lun_state(struct ispsoftc *isp, struct cam_path *path, tstate_t **rslt)
if (is_lun_enabled(isp, lun)) {
return (CAM_LUN_ALRDY_ENA);
}
- new = (tstate_t *) malloc(sizeof (tstate_t), M_DEVBUF, M_NOWAIT);
+ new = (tstate_t *) malloc(sizeof (tstate_t), M_DEVBUF, M_NOWAIT|M_ZERO);
if (new == NULL) {
return (CAM_RESRC_UNAVAIL);
}
- bzero(new, sizeof (tstate_t));
status = xpt_create_path(&new->owner, NULL, xpt_path_path_id(path),
xpt_path_target_id(path), xpt_path_lun_id(path));