mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
When upcalling from a socket in soisconnected() for an accept filter,
call with flag M_DONTWAIT rather than M_TRYWAIT, as we don't want to do blocking memory allocation (etc) in the netisr. MFC after: 3 days
This commit is contained in:
parent
40c20505a8
commit
9bfb7389bc
2 changed files with 2 additions and 2 deletions
|
|
@ -143,7 +143,7 @@ soisconnected(so)
|
|||
so->so_rcv.sb_flags |= SB_UPCALL;
|
||||
so->so_options &= ~SO_ACCEPTFILTER;
|
||||
SOCK_UNLOCK(so);
|
||||
so->so_upcall(so, so->so_upcallarg, M_TRYWAIT);
|
||||
so->so_upcall(so, so->so_upcallarg, M_DONTWAIT);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -143,7 +143,7 @@ soisconnected(so)
|
|||
so->so_rcv.sb_flags |= SB_UPCALL;
|
||||
so->so_options &= ~SO_ACCEPTFILTER;
|
||||
SOCK_UNLOCK(so);
|
||||
so->so_upcall(so, so->so_upcallarg, M_TRYWAIT);
|
||||
so->so_upcall(so, so->so_upcallarg, M_DONTWAIT);
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue