drm/amdgpu: validate hw_fini before function call
authorSunil Khatri <sunil.khatri@amd.com>
Wed, 9 Oct 2024 12:36:57 +0000 (18:06 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 22 Oct 2024 21:50:39 +0000 (17:50 -0400)
commitdad01f93f432d4a2456860f7f55fdb762d2982a4
tree3a082d504ea398eab10fc7d8182a589125dcb727
parent8834456163a1b372a85891751e51cafbf443a2d8
drm/amdgpu: validate hw_fini before function call

Before making a function call to hw_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