]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: fix an error code in init_pmu_entry_by_type_and_add()
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 14 Apr 2021 05:58:55 +0000 (08:58 +0300)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 15 Apr 2021 20:32:45 +0000 (16:32 -0400)
commit001bdd0d3e6492bc8a5b5724c3de7374d011fe96
tree04a530542a583028f273579873d6c712a50e9c93
parent1c7ed86a566594581385e02355934053b8a12c8f
drm/amdgpu: fix an error code in init_pmu_entry_by_type_and_add()

If the kmemdup() fails then this should return a negative error code
but it currently returns success

Fixes: a738b58c829d ("drm/amdgpu: add per device user friendly xgmi events for vega20")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_pmu.c