diff options
| author | Danilo Krummrich <[email protected]> | 2025-08-12 13:09:06 +0000 |
|---|---|---|
| committer | Danilo Krummrich <[email protected]> | 2025-08-13 23:52:15 +0000 |
| commit | 75a7b151e808355a1fdf972e85da137612b8f2ae (patch) | |
| tree | 9b7a123aed21c54630294776051fd25b29905d67 /scripts/make_fit.py | |
| parent | rust: faux: fix C header link (diff) | |
| download | kernel-75a7b151e808355a1fdf972e85da137612b8f2ae.tar.gz kernel-75a7b151e808355a1fdf972e85da137612b8f2ae.zip | |
rust: devres: fix leaking call to devm_add_action()
When the data argument of Devres::new() is Err(), we leak the preceding
call to devm_add_action().
In order to fix this, call devm_add_action() in a unit type initializer in
try_pin_init!() after the initializers of all other fields.
Fixes: f5d3ef25d238 ("rust: devres: get rid of Devres' inner Arc")
Reviewed-by: Alice Ryhl <[email protected]>
Reviewed-by: Benno Lossin <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Danilo Krummrich <[email protected]>
Diffstat (limited to 'scripts/make_fit.py')
0 files changed, 0 insertions, 0 deletions
