drm/amdgpu: validate sw_fini before function call
authorSunil Khatri <sunil.khatri@amd.com>
Wed, 9 Oct 2024 12:14:57 +0000 (17:44 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 22 Oct 2024 21:50:37 +0000 (17:50 -0400)
commit278b8fbf06c8572c6d82f9b60f6c43debb0e0dc8
treec6b1273266804a60badebc3cd658e8e40cfa3f0a
parent7fd12379bd1fb6544ea7e7a759f07384fbaf9ac7
drm/amdgpu: validate sw_fini before function call

Before making a function call to sw_fini, validate
the function pointer like we do in sw_init.

Signed-off-by: Sunil Khatri <sunil.khatri@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