diff options
author | scottl <scottl@FreeBSD.org> | 2007-04-19 14:45:37 +0000 |
---|---|---|
committer | scottl <scottl@FreeBSD.org> | 2007-04-19 14:45:37 +0000 |
commit | 7058ca9c7d02641635cc60b654ae76490261f7e6 (patch) | |
tree | b0c96fedcebe8c60b9ccaae5ecc017e788324d5e /sys/cam | |
parent | 59a37d31ba70513c3946326203c653bb21aec1d0 (diff) | |
download | FreeBSD-src-7058ca9c7d02641635cc60b654ae76490261f7e6.zip FreeBSD-src-7058ca9c7d02641635cc60b654ae76490261f7e6.tar.gz |
Zero the CCBs when mallocing them.
Diffstat (limited to 'sys/cam')
-rw-r--r-- | sys/cam/cam_xpt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/cam/cam_xpt.c b/sys/cam/cam_xpt.c index de69bcf..c211711 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); } |