HomeFreeBSD

iflib: Unlock ctx lock around call to ether_ifattach()

Description

iflib: Unlock ctx lock around call to ether_ifattach()

Panic occurs during loading driver using kldload. It exists since netlink is
enabled. There is problem with double locking ctx. This fix allows to call
ether_ifattach() without locked ctx.

Signed-off-by: Eric Joyner <erj@FreeBSD.org>

PR: 271768
Reviewed by: erj@, jhb@
Sponsored by: Intel Corporation
Differential Revision: https://reviews.freebsd.org/D40557

(cherry picked from commit a52f23f4c49e4766fb9eb0bf460cc83c5f63f17d)

Details

Provenance
przemyslawx.lewandowski_intel.comAuthored on Jul 19 2023, 10:40 PM
erjCommitted on Jul 20 2023, 10:42 PM
Differential Revision
D40557: iflib: add unlock to call ether_ifattach
Parents
rG67835f14aa68: le(4): deprecate and mark for removal before 15.0
Branches
Unknown
Tags
Unknown