diff options
| author | Asahi Lina <[email protected]> | 2024-11-23 10:29:38 +0000 |
|---|---|---|
| committer | Miguel Ojeda <[email protected]> | 2024-11-24 23:11:07 +0000 |
| commit | b7ed2b6f4e8d7f64649795e76ee9db67300de8eb (patch) | |
| tree | 6c52dd614e82d4577d777576a18f87d8d2751196 /rust/helpers/task.c | |
| parent | docs: rust: remove spurious item in `expect` list (diff) | |
| download | kernel-b7ed2b6f4e8d7f64649795e76ee9db67300de8eb.tar.gz kernel-b7ed2b6f4e8d7f64649795e76ee9db67300de8eb.zip | |
rust: alloc: Fix `ArrayLayout` allocations
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 <[email protected]>
Fixes: 9e7bbfa18276 ("rust: alloc: introduce `ArrayLayout`")
Signed-off-by: Asahi Lina <[email protected]>
Acked-by: Danilo Krummrich <[email protected]>
Reviewed-by: Neal Gompa <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Miguel Ojeda <[email protected]>
Diffstat (limited to 'rust/helpers/task.c')
0 files changed, 0 insertions, 0 deletions
