Re: [PATCH] rust: alloc: Fix `ArrayLayout` allocations
From: Miguel Ojeda
Date: Sun Nov 24 2024 - 18:56:41 EST
On Sat, Nov 23, 2024 at 11:30 AM Asahi Lina <lina@xxxxxxxxxxxxx> wrote:
>
> We were accidentally allocating a layout for the *square* of the object
> size due to a variable shadowing mishap.
>
> Fixes memory bloat and page allocation failures in drm/asahi.
>
> Reported-by: Janne Grunau <j@xxxxxxxxxx>
> Fixes: 9e7bbfa18276 ("rust: alloc: introduce `ArrayLayout`")
> Signed-off-by: Asahi Lina <lina@xxxxxxxxxxxxx>
Applied to `rust-next` -- thanks everyone!
Cheers,
Miguel