drm/amdgpu: Fix NULL pointer when ta is missing
authorxinhui pan <xinhui.pan@amd.com>
Mon, 11 Mar 2019 04:17:14 +0000 (12:17 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 19 Mar 2019 20:36:51 +0000 (15:36 -0500)
commit54eb4ed6072bd7c11a0cc1f9433967fceabaa560
tree40b54394878ab061512eaea8fbf9ac90632db320
parent2f3940e992431f3fb58a57c5679e95ccb7c0cc9f
drm/amdgpu: Fix NULL pointer when ta is missing

Ta is optional, so check if ta firmware is loaded or not.

Signed-off-by: xinhui pan <xinhui.pan@amd.com>
Reviewed-by: Evan Quan <evan.quan@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_psp.c