[PATCH v6.6, v6.1] drm/amdgpu: Fix possible NULL dereference in amdgpu_ras_query_error_status_helper()