diff options
| author | 2026-07-11 20:02:31 +0200 | |
|---|---|---|
| committer | 2026-07-17 15:44:44 +0200 | |
| commit | 3fadfb9362cf1b7d0a775f406f011d78800d6054 (patch) | |
| tree | d760346ac3185e91b5dd8798df6c5eaf9ec7c2cf /scripts/Makefile.thinlto | |
| parent | Merge patch series "software node: provide support for fw_devlink" (diff) | |
rust: firmware: avoid UB in example by passing parameter
The `Firmware` example crafts an `ARef<Device>` using a null pointer,
which breaks the safety requirements of `Device::get_device()`.
Instead, pass an `ARef` via a parameter, which is simpler, avoids UB
and removes an `unsafe` block.
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
Reviewed-by: Alexandre Courbot <acourbot@nvidia.com>
Reviewed-by: Gary Guo <gary@garyguo.net>
Link: https://patch.msgid.link/20260711180231.229525-1-ojeda@kernel.org
[ Also drop the second superfluous empty line. - Danilo ]
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
