HomeFreeBSD

Check cpu_softc is not NULL before dereferencing

Description

Check cpu_softc is not NULL before dereferencing

In the acpi_cpu_postattach SYSINIT function cpu_softc may be NULL, e.g.
on arm64 when booting from FDT. Check it is not NULL at the start of
the function so we don't try to dereference a NULL pointer.

Sponsored by: The FreeBSD Foundation

Details

Provenance
andrewAuthored on Sep 27 2021, 11:22 AM
Parents
rG74237127e340: Add myself to calendar.freebsd
Branches
Unknown
Tags
Unknown