mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 16:22:46 -04:00
On padlock initialization, allocate memory with M_WAITOK.
This commit is contained in:
parent
4a531e8dae
commit
f3b67db31a
1 changed files with 1 additions and 5 deletions
|
|
@ -179,11 +179,7 @@ padlock_init(void)
|
|||
#endif
|
||||
|
||||
padlock_sc = sc = malloc(sizeof(*padlock_sc), M_DEVBUF,
|
||||
M_NOWAIT | M_ZERO);
|
||||
if (padlock_sc == NULL) {
|
||||
printf("PADLOCK: Could not allocate memory.\n");
|
||||
return (ENOMEM);
|
||||
}
|
||||
M_WAITOK | M_ZERO);
|
||||
TAILQ_INIT(&sc->sc_sessions);
|
||||
sc->sc_sid = 1;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue