]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: fix r initial values
authorVictor Zhao <Victor.Zhao@amd.com>
Tue, 27 Apr 2021 09:52:56 +0000 (17:52 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 29 Apr 2021 04:02:40 +0000 (00:02 -0400)
commitdc5c38536c6840861867d378726873b881e44119
tree51c0f0cfb0657de845def3900f9a2bc22f261887
parent1597f9dd1f86289c784c39796ac275019491d67d
drm/amdgpu: fix r initial values

Sriov gets suspend of IP block <dce_virtual> failed as return
value was not initialized.

v2: return 0 directly to align original code semantic before this
was broken out into a separate helper function instead of setting
initial values

Signed-off-by: Victor Zhao <Victor.Zhao@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/amdgpu/amdgpu_display.c