From 2a30c7ddf70fc3cf18af81ca7d13f054447ec855 Mon Sep 17 00:00:00 2001 From: Scott Long Date: Thu, 19 Apr 2007 14:45:37 +0000 Subject: [PATCH] Zero the CCBs when mallocing them. --- sys/cam/cam_xpt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sys/cam/cam_xpt.c b/sys/cam/cam_xpt.c index de69bcf41f0..c2117112e7f 100644 --- a/sys/cam/cam_xpt.c +++ b/sys/cam/cam_xpt.c @@ -4988,7 +4988,7 @@ xpt_alloc_ccb() { union ccb *new_ccb; - new_ccb = malloc(sizeof(*new_ccb), M_CAMXPT, M_WAITOK); + new_ccb = malloc(sizeof(*new_ccb), M_CAMXPT, M_ZERO|M_WAITOK); return (new_ccb); } @@ -4997,7 +4997,7 @@ xpt_alloc_ccb_nowait() { union ccb *new_ccb; - new_ccb = malloc(sizeof(*new_ccb), M_CAMXPT, M_NOWAIT); + new_ccb = malloc(sizeof(*new_ccb), M_CAMXPT, M_ZERO|M_NOWAIT); return (new_ccb); }