aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
diff options
context:
space:
mode:
authorBen Skeggs <[email protected]>2025-06-17 04:00:36 +0000
committerDanilo Krummrich <[email protected]>2025-07-07 14:32:44 +0000
commitd133036a0b23d3ef781d067ccdea6bbfb381e0cf (patch)
tree49fe5f0690dba78ab473650cde45636b072913d2 /drivers/gpu/drm/amd/amdgpu/amdgpu_device.c
parentrust: drm: remove unnecessary imports (diff)
downloadkernel-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