HomeFreeBSD

net: Fix LLE lock leaks

Description

net: Fix LLE lock leaks

Historically, lltable_try_set_entry_addr() would release the LLE lock
upon failure. After some refactoring, it no longer does so, but
consumers were not adjusted accordingly.

Also fix a leak that can occur if lltable_calc_llheader() fails in the
ARP code, but I suspect that such a failure can only occur due to a code
bug.

Reviewed by: bz, melifaro
Reported by: pho
Fixes: 0b79b007ebfc ("[lltable] Restructure nd6 code.")
Sponsored by: The FreeBSD Foundation

(cherry picked from commit dd91d8448665dd31df5be7341756394293c6e36c)

Details

Provenance
markjAuthored on Apr 8 2022, 3:46 PM
Parents
rG85e36b3c9c00: i386: Fix the nodevice apic build
Branches
Unknown
Tags
Unknown