mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Remove call to bzero after MALLOC and instead add M_ZERO
to MALLOC.
This commit is contained in:
parent
05f80a57a7
commit
7ec9743293
1 changed files with 1 additions and 2 deletions
|
|
@ -123,8 +123,7 @@ get_prison(struct proc *p)
|
|||
|
||||
if (pr->pr_linux == NULL) {
|
||||
MALLOC(lpr, struct linux_prison *, sizeof *lpr,
|
||||
M_PRISON, M_WAITOK);
|
||||
bzero((caddr_t)lpr, sizeof *lpr);
|
||||
M_PRISON, M_WAITOK|M_ZERO);
|
||||
pr->pr_linux = lpr;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue