HomeFreeBSD

firewire: NULL check on malloc in fw_busreset()

Description

firewire: NULL check on malloc in fw_busreset()

fw_busreset() allocates newrom with M_NOWAIT from interrupt context.
If the allocation fails, crom_load() dereferences a NULL pointer.

Skip the config ROM comparison on allocation failure so the next bus
reset will retry.

Reviewed by: adrian
Differential Revision: https://reviews.freebsd.org/D57728

Details

Provenance
seurosAuthored on Jun 22 2026, 12:30 AM
adrianCommitted on Jun 22 2026, 12:31 AM
Reviewer
adrian
Differential Revision
D57728: firewire: NULL check on malloc in fw_busreset()
Parents
rG455c354dd4db: gss_impl.c: Fix a nfsd hang when the kgssapi.ko is loaded, but no gssd
Branches
Unknown
Tags
Unknown