Page MenuHomeFreeBSD

Fix ofw pcib when it rman_init fails
ClosedPublic

Authored by andrew on Jun 30 2022, 6:28 PM.

Details

Summary

rman_fini assumes rman_init has been called successfully. Clean up
init faulure by only calling rman_fini when rman_init has succeeded.

While here add ofw_pcib_fini that can be used by a sub-class to clean
up.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.