drm/amdgpu: Handle job is NULL use case in amdgpu_device_gpu_recover
authorAndrey Grodzovsky <andrey.grodzovsky@amd.com>
Tue, 27 Aug 2019 16:14:47 +0000 (12:14 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 30 Aug 2019 20:02:39 +0000 (15:02 -0500)
commit0b2d2c2eecf27f403df60ebab06cad7b6bfe84f8
tree56cbc66cc55c03bd377a7fb43fbe64e49693df33
parente1c14c43395c54c213a6bd415ba2db50fe503598
drm/amdgpu: Handle job is NULL use case in amdgpu_device_gpu_recover

This should be checked at all places job is accessed.

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