HomeFreeBSD

genet: Fix potential crash during attach

Description

genet: Fix potential crash during attach

As pointed out in the bug, the genet driver (RPi4 Ethernet) was
attaching the interrupts before the data structures were fully
initialized, causing a crash if an interrupt came in during the
attach. Fix by reordering code blocks.

PR: 256334
Reported by: < ghuckriede at blackberry.com >
Reviewed by: < ghuckriede at blackberry.com > (informally)

(cherry picked from commit 13604fb0fd43c85e6bb3a0ad6400a684f150bdea)

Details

Provenance
karelsAuthored on Jun 20 2021, 4:10 PM
Parents
rG8413d2a78665: ktls: switch bare zone_mbuf use to m_free_raw
Branches
Unknown
Tags
Unknown