diff options
| author | Ben Skeggs <[email protected]> | 2025-06-17 04:00:36 +0000 |
|---|---|---|
| committer | Danilo Krummrich <[email protected]> | 2025-07-07 14:32:44 +0000 |
| commit | d133036a0b23d3ef781d067ccdea6bbfb381e0cf (patch) | |
| tree | 49fe5f0690dba78ab473650cde45636b072913d2 /drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | |
| parent | rust: drm: remove unnecessary imports (diff) | |
| download | kernel-d133036a0b23d3ef781d067ccdea6bbfb381e0cf.tar.gz kernel-d133036a0b23d3ef781d067ccdea6bbfb381e0cf.zip | |
drm/nouveau/gsp: fix potential leak of memory used during acpi init
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 <[email protected]>
Fixes: 176fdcbddfd2 ("drm/nouveau/gsp/r535: add support for booting GSP-RM")
Signed-off-by: Ben Skeggs <[email protected]>
Signed-off-by: Danilo Krummrich <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_device.c')
0 files changed, 0 insertions, 0 deletions
