drm/amdgpu: validate sw_init before function call
authorSunil Khatri <sunil.khatri@amd.com>
Wed, 9 Oct 2024 08:43:35 +0000 (14:13 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 22 Oct 2024 21:50:37 +0000 (17:50 -0400)
commitdf6e463d8f020b17c2494b6cc85d218af466e9f9
treecec2d03baba2a98271558a6d5b5ac99bb34af60b
parent10112bf828c39ca440287c93b1cdc93f404383b8
drm/amdgpu: validate sw_init before function call

Before making a function call to sw_init, validate
the function pointer like we do in late_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