diff options
author | Ben Skeggs <bskeggs@nvidia.com> | 2025-06-17 14:00:36 +1000 |
---|---|---|
committer | Danilo Krummrich <dakr@kernel.org> | 2025-07-07 16:32:44 +0200 |
commit | d133036a0b23d3ef781d067ccdea6bbfb381e0cf (patch) | |
tree | 49fe5f0690dba78ab473650cde45636b072913d2 /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 3d44147494385b245f021a3a3a5c1408be1d50d1 (diff) |
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 <dakr@kernel.org>
Fixes: 176fdcbddfd2 ("drm/nouveau/gsp/r535: add support for booting GSP-RM")
Signed-off-by: Ben Skeggs <bskeggs@nvidia.com>
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
Link: https://lore.kernel.org/r/20250617040036.2932-1-bskeggs@nvidia.com
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions