diff options
author | 2025-01-07 13:25:11 +0100 | |
---|---|---|
committer | 2025-01-10 15:49:06 +0100 | |
commit | 8ff656643d3075154419680470dbfdbd6092e31f (patch) | |
tree | ec7bfd6b8c8ab367c6feacdea717dbb8e1c6e1bd /scripts/lib/kdoc/kdoc_parser.py | |
parent | devres: add devm_remove_action_nowarn() (diff) | |
download | linux-rng-8ff656643d3075154419680470dbfdbd6092e31f.tar.xz linux-rng-8ff656643d3075154419680470dbfdbd6092e31f.zip |
rust: devres: remove action in `Devres::drop`
So far `DevresInner` is kept alive, even if `Devres` is dropped until
the devres callback is executed to avoid a WARN() when the action has
been released already.
With the introduction of devm_remove_action_nowarn() we can remove the
action in `Devres::drop`, handle the case where the action has been
released already and hence also free `DevresInner`.
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
Link: https://lore.kernel.org/r/20250107122609.8135-2-dakr@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts/lib/kdoc/kdoc_parser.py')
0 files changed, 0 insertions, 0 deletions