HomeFreeBSD

inpcb: Remove a PCB from its LB group upon a subsequent error

Description

inpcb: Remove a PCB from its LB group upon a subsequent error

If a memory allocation failure causes bind to fail, we should take the
inpcb back out of its LB group since it's not prepared to handle
connections.

Reviewed by: glebius
MFC after: 2 weeks
Sponsored by: Modirum MDPay
Sponsored by: Klara, Inc.
Differential Revision: https://reviews.freebsd.org/D37027

(cherry picked from commit a152dd863418638c3eb08b5c101b10b82f8072f5)

Details

Provenance
markjAuthored on Nov 2 2022, 5:05 PM
Reviewer
glebius
Differential Revision
D37027: inpcb: Remove a PCB from its LB group upon a subsequent error
Parents
rG3e27fcf05793: inpcb: Remove NULL checks of credential references
Branches
Unknown
Tags
Unknown