mirror of
https://github.com/opnsense/src.git
synced 2026-04-21 14:17:06 -04:00
mfi(4): Stop checking for failures from malloc(M_WAITOK)
MFC after: 1 week Differential Revision: https://reviews.freebsd.org/D45852 (cherry picked from commit 701308ef404f552034f8c3e3e912b41bfef28ee6)
This commit is contained in:
parent
0fa8566510
commit
4fee8d3e92
1 changed files with 2 additions and 5 deletions
|
|
@ -3633,11 +3633,8 @@ out:
|
|||
mfi_aen_entry = malloc(sizeof(struct mfi_aen), M_MFIBUF,
|
||||
M_WAITOK);
|
||||
mtx_lock(&sc->mfi_io_lock);
|
||||
if (mfi_aen_entry != NULL) {
|
||||
mfi_aen_entry->p = curproc;
|
||||
TAILQ_INSERT_TAIL(&sc->mfi_aen_pids, mfi_aen_entry,
|
||||
aen_link);
|
||||
}
|
||||
mfi_aen_entry->p = curproc;
|
||||
TAILQ_INSERT_TAIL(&sc->mfi_aen_pids, mfi_aen_entry, aen_link);
|
||||
error = mfi_aen_register(sc, l_aen.laen_seq_num,
|
||||
l_aen.laen_class_locale);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue