]> 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)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 30 Jan 2013 19:10:04 +0000 (14:10 -0500)
commitf689e3acbd2e48cc4101e0af454193f81af4baaf
tree39cd14fa86616b7dca061d3211079f235386e02e
parentf7eb97300832f4fe5fe916c5d84cd2e25169330e
drm/radeon: protect against div by 0 in backend setup

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>
Cc: stable@vger.kernel.org
drivers/gpu/drm/radeon/r600.c