CVSROOT:        /cvs
Module name:    src
Changes by:     [email protected]    2025/03/26 07:57:35

Modified files:
        sys/dev/pci    : if_ice.c 

Log message:
fix crash with ifp->if_linkstatetask NULL pointer during ice(4) attachment

My earlier fix for ice(4) device attachment crashes was imperfect.
We must ensure that ifattach() gets called before if_link_state_change(),
such that ifp->if_linkstatetask gets set beforehand.

This crash could be triggered by having multiple ice(4) interfaces and
making ice_attach_hook() sleep somehow. Which will always happen as soon
as we try loading firmware.

Reply via email to