HomeFreeBSD

sfxge: defer ether_ifattach to when ifmedia_init is done

Description

sfxge: defer ether_ifattach to when ifmedia_init is done

Otherwise the ifmedia subsystem may call unguarded NULL function
pointers. Same issue that was fixed for cxgb(4) in f2daf8995.

Also see: https://github.com/opnsense/src/issues/228
MFC after: 1 week

Details

Provenance
franco_opnsense.orgAuthored on Nov 29 2024, 8:36 PM
Kevin Bowling <kbowling@FreeBSD.org>Committed on Dec 2 2024, 9:09 AM
Parents
rG991bd461625a: lib/libsbuf/tests: reformat with `clang-format`
Branches
Unknown
Tags
Unknown