diff options
author | Danilo Krummrich <dakr@kernel.org> | 2025-01-07 13:25:11 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-01-10 15:49:06 +0100 |
commit | 8ff656643d3075154419680470dbfdbd6092e31f (patch) | |
tree | ec7bfd6b8c8ab367c6feacdea717dbb8e1c6e1bd /samples/vfio-mdev | |
parent | f1725160fd28a2e65e47166637aa44856a1a7f89 (diff) |
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 'samples/vfio-mdev')
0 files changed, 0 insertions, 0 deletions