HomeFreeBSD

net: Fix memory leaks in lltable_calc_llheader() error paths

Description

net: Fix memory leaks in lltable_calc_llheader() error paths

Also convert raw epoch_call() calls to lltable_free_entry() calls, no
functional change intended. There's no need to asynchronously free the
LLEs in that case to begin with, but we might as well use the lltable
interfaces consistently.

Noticed by code inspection; I believe lltable_calc_llheader() failures
do not generally happen in practice.

Reviewed by: bz
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D34832

Details

Provenance
markjAuthored on Apr 8 2022, 3:47 PM
Reviewer
bz
Differential Revision
D34832: net: Fix memory leaks in lltable_calc_llheader() error paths
Parents
rGdd91d8448665: net: Fix LLE lock leaks
Branches
Unknown
Tags
Unknown