HomeFreeBSD

stand/uboot: setup archsw before probing devices

Description

stand/uboot: setup archsw before probing devices

In some cases ubldr would try to mount a disk device before
the archsw struct was filled with functions pointers.
This would result in a NULL pointer derefrence of the arch_getdev field.
Fix that filling the archsw functions earlier.
Note that this matches the EFI behavoiur.

Reviewed by: imp, mw
Sponsored by: Stormshield
Obtained from: Semihalf
MFC after: 2 weeks
Differential Revision: https://reviews.freebsd.org/D35670

(cherry picked from commit 1323f0aa9cb0392d2946226bd76f14463e875a60)

Details

Provenance
aja_semihalf.comAuthored on Jun 28 2022, 3:28 PM
kdCommitted on Jul 19 2022, 9:37 AM
Reviewer
imp
Differential Revision
D35670: stand/uboot: setup archsw before probing devices
Parents
rGf470bff421ff: lockstat: Fix construction of comparision predicates
Branches
Unknown
Tags
Unknown