mirror of
https://github.com/opnsense/src.git
synced 2026-04-25 16:18:54 -04:00
Allocate zeroed space for fwdev.
This commit is contained in:
parent
1bba1572a0
commit
df7898b895
1 changed files with 2 additions and 1 deletions
|
|
@ -1215,7 +1215,8 @@ loop:
|
|||
fc->ongoeui.hi = 0xffffffff; fc->ongoeui.lo = 0xffffffff;
|
||||
goto loop;
|
||||
}
|
||||
fwdev = malloc(sizeof(struct fw_device), M_FW, M_NOWAIT);
|
||||
fwdev = malloc(sizeof(struct fw_device), M_FW,
|
||||
M_NOWAIT | M_ZERO);
|
||||
if(fwdev == NULL)
|
||||
return;
|
||||
fwdev->fc = fc;
|
||||
|
|
|
|||
Loading…
Reference in a new issue