summaryrefslogtreecommitdiff
path: root/include/net/aligned_data.h
diff options
context:
space:
mode:
authorDanilo Krummrich <dakr@kernel.org>2025-06-11 19:48:25 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2025-07-06 11:04:25 +0200
commit5640e62e85082a7abc1aca83a3a7ad9f0b2c3a60 (patch)
tree7c1090a66182ef27cafce95a8b89061aa36b56c2 /include/net/aligned_data.h
parent8b60b1dd7b5a8129c2a83cc1b38cc2b0485a8347 (diff)
rust: devres: do not dereference to the internal Revocable
commit 20c96ed278e362ae4e324ed7d8c69fb48c508d3c upstream. We can't expose direct access to the internal Revocable, since this allows users to directly revoke the internal Revocable without Devres having the chance to synchronize with the devres callback -- we have to guarantee that the internal Revocable has been fully revoked before the device is fully unbound. Hence, remove the corresponding Deref implementation and, instead, provide indirect accessors for the internal Revocable. Note that we can still support Devres::revoke() by implementing the required synchronization (which would be almost identical to the synchronization in Devres::drop()). Fixes: 76c01ded724b ("rust: add devres abstraction") Reviewed-by: Benno Lossin <lossin@kernel.org> Link: https://lore.kernel.org/r/20250611174827.380555-1-dakr@kernel.org Signed-off-by: Danilo Krummrich <dakr@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/net/aligned_data.h')
0 files changed, 0 insertions, 0 deletions