Put up a PR to make almost all protocol opening happen through the
open_protocolmethod. The other two methods for opening protocols (
locate_protocol) are now marked as
There's still some more safety work to do with
open_protocol-- if the protocol isn't opened in exclusive mode, or if the agent parameter isn't set correctly, UB could still result. But this change is a good step in the right direction.
Created a few PRs for the next edition of This Month in Rust OSDev: