https://bugs.freedesktop.org/show_bug.cgi?id=27868
--- Comment #4 from Bobby Weinmann bobby.weinmann@gmail.com 2010-05-07 07:26:32 PDT --- Created an attachment (id=35497) View: https://bugs.freedesktop.org/attachment.cgi?id=35497 Review: https://bugs.freedesktop.org/review?bug=27868&attachment=35497
PATCH for crash after "valide"
PATCH:
I have run into a crash after a "cannot valide it" warning. The unmap function in radeon_bo_legacy is called sometimes when the memory is no longer mapped. The radeon_bo_legacy->map_count goes negative which means statements like
if (radeon_bo_legacy->map_count) ...
will return true.
The attached patch prevents the count from going negative and fixes the crash for me.
Crash was with the r200 driver (Radeon 9250SE) playing UrbanTerror using UMS. I made the patch using the Ubuntu Lucid 10.04 source package.
Bobby