Re: [PATCH] rust: drm: gem: clean up GEM state in init failure case
From: Alice Ryhl
Date: Fri May 01 2026 - 10:06:01 EST
On Thu, Apr 23, 2026 at 2:37 PM Eliot Courtney <ecourtney@xxxxxxxxxx> wrote:
>
> Currently, if `drm_gem_object_init` fails, the object is freed without
> any cleanup. Perform the cleanup in that case.
>
> Signed-off-by: Eliot Courtney <ecourtney@xxxxxxxxxx>
Tricky stuff. I also concluded that this is correct.
Reviewed-by: Alice Ryhl <aliceryhl@xxxxxxxxxx>
This is a bugfix, so:
Cc: stable@xxxxxxxxxxxxxxx
Fixes: c284d3e42338 ("rust: drm: gem: Add GEM object abstraction")
Alice