HomeFreeBSD

MFC 366584: Don't invoke semunload() if seminit() fails during MOD_LOAD.

Description

MFC 366584: Don't invoke semunload() if seminit() fails during MOD_LOAD.

The module handler code invokes a MOD_UNLOAD event immediately if
MOD_LOAD fails. The result was that if seminit() failed, semunload()
was invoked twice. semunload() is not idempotent however and would
try to remove it's process_exit eventhandler twice resulting in a
panic.

Details

Provenance
jhbAuthored on
Parents
rS368527: riscv: handle debug.debugger_on_trap for fatal page faults
Branches
Unknown
Tags
Unknown