drm/amdgpu/si: fix crash on headless asics
authorAlex Deucher <alexander.deucher@amd.com>
Fri, 27 Jan 2017 15:31:52 +0000 (10:31 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Feb 2017 07:08:26 +0000 (08:08 +0100)
commitc9fb422fd93883b65f1bb00e6e9206a5865245fc
tree42f0e8ebf5dda17c8d900138ee9ea542475f2af2
parent20658b3df8b98cbdc433c824730471160a087afb
drm/amdgpu/si: fix crash on headless asics

commit 57bcd0a6364cd4eaa362d7ff1777e88ddf501602 upstream.

Missing check for crtcs present.

Fixes:
https://bugzilla.kernel.org/show_bug.cgi?id=193341
https://bugs.freedesktop.org/show_bug.cgi?id=99387

Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c