]> git.karo-electronics.de Git - karo-tx-linux.git/commit
drm/radeon: protect against div by 0 in backend setup
authorMikko Tiihonen <mikko.tiihonen@iki.fi>
Wed, 30 Jan 2013 19:10:04 +0000 (14:10 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 11 Feb 2013 17:04:43 +0000 (09:04 -0800)
commit3e15c0b088f84357a29b55115e3bf918769e4685
treef43dd26cc8f6da4e96f95acf25de7c5e331bbdee
parentf69c00ea43dd57ee6095418d68e79d3cf13db502
drm/radeon: protect against div by 0 in backend setup

commit f689e3acbd2e48cc4101e0af454193f81af4baaf upstream.

Make sure at least one RB is enabled in
r6xx_remap_render_backend() to avoid an division by
zero in some corner cases.

See:
https://bugzilla.redhat.com/show_bug.cgi?id=892233

Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/radeon/r600.c