Skip to content
Snippets Groups Projects
Commit 7013bdca authored by Danilo Krummrich's avatar Danilo Krummrich
Browse files

rust: driver: address soundness issue in `RegistrationOps`


The `RegistrationOps` trait holds some obligations to the caller and
implementers. While being documented, the trait and the corresponding
functions haven't been marked as unsafe.

Hence, markt the trait and functions unsafe and add the corresponding
safety comments.

This patch does not include any fuctional changes.

Reported-by: default avatarGary Guo <gary@garyguo.net>
Closes: https://lore.kernel.org/rust-for-linux/20241224195821.3b43302b.gary@garyguo.net/


Signed-off-by: default avatarDanilo Krummrich <dakr@kernel.org>
parent 72197f67
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment