HomeFreeBSD

sys: don't panic on ifm_status being NULL

Description

sys: don't panic on ifm_status being NULL

Some ethernet drivers that use miibus aren't probe/attaching the
miibus early enough for the ifioctl path to correctly run without
panicing.

Although yes, the drivers do need fixing, this stops them from
immediately panicing the kernel when they're loaded.

PR: kern/286530
Differential Revision: https://reviews.freebsd.org/D50136
Reviewed by: jhb

Details

Provenance
adrianAuthored on May 3 2025, 3:41 PM
Reviewer
jhb
Differential Revision
D50136: sys: don't panic on ifm_status being NULL
Parents
rG20d808f42860: net80211: document the vap / device transmit paths, fragment node references
Branches
Unknown
Tags
Unknown