[PATCH] drm/nouveau/gsp: fix potential leak of memory used during acpi init
Danilo Krummrich
dakr at kernel.org
Mon Jul 7 14:59:25 UTC 2025
On 6/17/25 6:00 AM, Ben Skeggs wrote:
> If any of the ACPI calls fail, memory allocated for the input buffer
> would be leaked. Fix failure paths to free allocated memory.
>
> Also add checks to ensure the allocations succeeded in the first place.
>
> Reported-by: Danilo Krummrich <dakr at kernel.org>
> Fixes: 176fdcbddfd2 ("drm/nouveau/gsp/r535: add support for booting GSP-RM")
> Signed-off-by: Ben Skeggs <bskeggs at nvidia.com>
Applied to drm-misc-fixes, thanks!
More information about the Nouveau
mailing list