drm/amdgpu: correct the gpu reset handling for job != NULL case
authorEvan Quan <evan.quan@amd.com>
Thu, 15 Oct 2020 06:57:46 +0000 (14:57 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 21 Oct 2020 21:33:43 +0000 (17:33 -0400)
commit207ac684792560acdb9e06f9d707ebf63c84b0e0
treea01f13b962d6712922b817decccc65f94acf6c57
parent843c7eb2f7571aa092a8ea010c80e8d94c197f67
drm/amdgpu: correct the gpu reset handling for job != NULL case

Current code wrongly treat all cases as job == NULL.

Signed-off-by: Evan Quan <evan.quan@amd.com>
Reviewed-and-tested-by: Jane Jian <Jane.Jian@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
drivers/gpu/drm/amd/amdgpu/amdgpu_device.c