drm/amdgpu: cleanup gmc_v9_0_process_interrupt
authorChristian König <christian.koenig@amd.com>
Wed, 28 Oct 2020 13:46:56 +0000 (14:46 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 30 Oct 2020 04:59:56 +0000 (00:59 -0400)
commite3898719832373dcd6594c4e62da1d29fd8f4f27
tree37b8b2446c608bd83c398d7dcbdb18ffb0993f32
parente0457659f8d842908510fb485c32cb4da829900d
drm/amdgpu: cleanup gmc_v9_0_process_interrupt

First of all don't snprintf into a char buffer allocated on the stack with
a constant hubname.

Then cleanup to exit the function early in case of a ratelimit or SRIOV.

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/gmc_v9_0.c