HomeFreeBSD

tcp: improve failure handling in tcp_newtcpcb()

Description

tcp: improve failure handling in tcp_newtcpcb()

In case of a failure of tcp_newtcpcb, where NULL is returned,

  • call CC_ALGO(tp)->cb_destroy, after CC_ALGO(tp)->cb_init was called.
  • call khelp_destroy_osd(), after khelp_init_osd() was called.

Reviewed by: glebius, rscheff
MFC after: 1 week
Sponsored by: Netflix, Inc.
Differential Revision: https://reviews.freebsd.org/D45753

Details

Provenance
tuexenAuthored on Jun 27 2024, 6:26 AM
Reviewer
glebius
Differential Revision
D45753: tcp: improve failure handling in tcp_newtcpcb()
Parents
rGa35f66510917: if_genet: don't load DMA mapping when tx_queue is full
Branches
Unknown
Tags
Unknown