drm/amdgpu: validate wait_for_idle before function call
authorSunil Khatri <sunil.khatri@amd.com>
Wed, 9 Oct 2024 13:14:52 +0000 (18:44 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 22 Oct 2024 21:50:39 +0000 (17:50 -0400)
commit780002b6545d8990c2d089296f70bc64265ea915
tree04398427831a5befa7fd5ab45a0ed5eaf3ffa2d5
parent502d76308d45a9ef79b9266c5a090e9e6954faaa
drm/amdgpu: validate wait_for_idle before function call

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