Messages in this thread |  | | Date | Mon, 01 Dec 2025 12:37:27 +0900 | | Subject | Re: [PATCH v2] rust: miscdevice: use `pin_init::zeroed()` for C type initialization | | From | "Alexandre Courbot" <> |
| |
On Sat Nov 29, 2025 at 9:15 PM JST, Atharv Dubey wrote: > Replace manual zero-initialization using > `MaybeUninit::zeroed().assume_init()` with `pin_init::zeroed()`. > The `pin_init` helper provides a safer and clearer API for > zero-initializing C structs without requiring an `unsafe` block. > > Link: https://github.com/Rust-for-Linux/linux/issues/1189 > Signed-off-by: Atharv Dubey <atharvd440@gmail.com>
Reviewed-by: Alexandre Courbot <acourbot@nvidia.com>
|  |