rust_binder: allocation: call trace_transaction_failed_buffer_release()

Call `trace_transaction_failed_buffer_release()` when transaction
fails in `NewAllocation`'s destructor. This provides visibility into
the failed buffer releases.

Signed-off-by: Sagar Taunk <sagartaunk@proton.me>
Link: https://patch.msgid.link/20260927125622.676342-3-sagartaunk@proton.me
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Sagar Taunk 2026-09-27 12:56:45 +00:00 committed by Greg Kroah-Hartman
parent 710da9d05b
commit e2e4a4527d

View File

@ -20,6 +20,7 @@
defs::*,
node::{Node, NodeRef},
process::Process,
trace::trace_transaction_failed_buffer_release,
DArc,
};
@ -325,6 +326,12 @@ fn deref_mut(&mut self) -> &mut Allocation {
}
}
impl Drop for NewAllocation {
fn drop(&mut self) {
trace_transaction_failed_buffer_release(self.debug_id);
}
}
/// A view into the beginning of an allocation.
///
/// All attempts to read or write outside of the view will fail. To intentionally access outside of