From: Alex Deucher Date: Mon, 19 Nov 2012 14:11:27 +0000 (-0500) Subject: drm/radeon: properly track the crtc not_enabled case evergreen_mc_stop() X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=804cc4a0ad3a896ca295f771a28c6eb36ced7903;p=openwrt%2Fstaging%2Fblogic.git drm/radeon: properly track the crtc not_enabled case evergreen_mc_stop() The save struct is not initialized previously so explicitly mark the crtcs as not used when they are not in use. Signed-off-by: Alex Deucher Cc: stable@vger.kernel.org --- diff --git a/drivers/gpu/drm/radeon/evergreen.c b/drivers/gpu/drm/radeon/evergreen.c index af31f829f4a8..219942c660d7 100644 --- a/drivers/gpu/drm/radeon/evergreen.c +++ b/drivers/gpu/drm/radeon/evergreen.c @@ -1330,6 +1330,8 @@ void evergreen_mc_stop(struct radeon_device *rdev, struct evergreen_mc_save *sav break; udelay(1); } + } else { + save->crtc_enabled[i] = false; } }