[Bug 27868] [r600] on new campaign, Vegastrike crashes or freezes Xorg

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



https://bugs.freedesktop.org/show_bug.cgi?id=27868

--- Comment #4 from Bobby Weinmann <bobby.weinmann@xxxxxxxxx> 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

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
dri-devel mailing list
dri-devel@xxxxxxxxxxxxxxxxxxxxx
http://lists.freedesktop.org/mailman/listinfo/dri-devel

[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux