mirror of
https://github.com/opnsense/src.git
synced 2026-06-11 09:41:03 -04:00
Zero the CCBs when mallocing them.
This commit is contained in:
parent
9758cc8399
commit
2a30c7ddf7
1 changed files with 2 additions and 2 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue