Re: [PATCH] binder: replace unsafe NewAllocation transmute with field move
From: Alice Ryhl
Date: Tue Oct 13 2026 - 05:22:09 EST
On Thu, Oct 08, 2026 at 11:29:05AM +0200, Thorsten Blum wrote:
> NewAllocation does not implement Drop and success() can return its
> Allocation field directly. Also remove the now-unused transparent
> representation.
>
> Signed-off-by: Thorsten Blum <blum@xxxxxxxxxx>
The NewAllocation type implements Drop as of commit e2e4a4527d18
("rust_binder: allocation: call trace_transaction_failed_buffer_release()").
See: https://patch.msgid.link/20260927125622.676342-3-sagartaunk@xxxxxxxxx
Alice