From: Alex Deucher Date: Mon, 2 Aug 2010 16:13:46 +0000 (-0400) Subject: drm/radeon/kms: handle the case of no active displays properly in the bandwidth code X-Git-Tag: v2.6.36-rc1~540^2~13 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e06b14ee91a2ddefc9a67443a6cd8ee0fa800115;p=pandora-kernel.git drm/radeon/kms: handle the case of no active displays properly in the bandwidth code Logic was: if (mode0 && mode1) else if (mode0) else Should be: if (mode0 && mode1) else if (mode0) else if (mode1) Otherwise we may end up calculating the priority regs with unitialized values. Fixes: https://bugzilla.kernel.org/show_bug.cgi?id=16492 Signed-off-by: Alex Deucher Cc: stable@kernel.org Signed-off-by: Dave Airlie --- Reading git-diff-tree failed