HomeFreeBSD

Make periphdriver_register() take XPT lock when modifying the periph_drivers

Description

Make periphdriver_register() take XPT lock when modifying the periph_drivers
array.

This fixes a panic that sometimes occured when kldloading ctl.ko.

Reviewed by: mav@
MFC after: 1 month
Sponsored by: The FreeBSD Foundation

Details

Provenance
traszAuthored on
Parents
rS279553: Move duplicate code to a new public function.
Branches
Unknown
Tags
Unknown

Event Timeline