diff options
| author | Wentao Liang <vulab@iscas.ac.cn> | 2025-03-06 10:51:48 +0300 |
|---|---|---|
| committer | Alex Deucher <alexander.deucher@amd.com> | 2025-03-07 20:55:56 +0300 |
| commit | 1435e895d4fc967d64e9f5bf81e992ac32f5ac76 (patch) | |
| tree | 9fa8aa7bf7c0ee8e0fb10fe78b16705b391b268b /tools/perf/scripts/python/export-to-sqlite.py | |
| parent | bd4b125eb949785c6f8a53b0494e32795421209d (diff) | |
| download | linux-1435e895d4fc967d64e9f5bf81e992ac32f5ac76.tar.xz | |
drm/amdgpu: handle amdgpu_cgs_create_device() errors in amd_powerplay_create()
Add error handling to propagate amdgpu_cgs_create_device() failures
to the caller. When amdgpu_cgs_create_device() fails, release hwmgr
and return -ENOMEM to prevent null pointer dereference.
[v1]->[v2]: Change error code from -EINVAL to -ENOMEM. Free hwmgr.
Signed-off-by: Wentao Liang <vulab@iscas.ac.cn>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions
