]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit674ec5c3a8e2bb3037fe8d9b2d34c185d572e552
tree37b8b2446c608bd83c398d7dcbdb18ffb0993f32
parentc47abffafbf8c5f0c645b4bb09b81252bd76f3b0
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