HomeFreeBSD

Fix a panic when unloading firmware

Description

Fix a panic when unloading firmware

LIST_FOREACH_SAFE() is not safe in the presence
of other threads removing list entries when a
mutex is released.

This is not in the critical path, so just restart
the scan each time we drop the lock, rather than
using a marker.

Reviewed by: jhb, markj
Sponsored by: Netflix

Details

Provenance
gallatinAuthored on Jun 29 2020, 9:35 PM
Parents
rGbbfbc439f2aa: Fix printf(3) output of long doubles on RISC-V
Branches
Unknown
Tags
Unknown

Event Timeline