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.

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

(cherry picked from commit dd91d8448665dd31df5be7341756394293c6e36c)
(cherry picked from commit 078d50f9dd14ac77145b2cf8f143d49329b2c4f7)

Details

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