Zero the CCBs when mallocing them.

This commit is contained in:
Scott Long 2007-04-19 14:45:37 +00:00
parent 9758cc8399
commit 2a30c7ddf7

View File

@ -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);
}