[PATCH] dri2: Fix detection of wrong prime_id in GetScreenPrime.
keithp at keithp.com
Thu May 22 16:28:31 PDT 2014
Michal Srb <msrb at suse.com> writes:
> Checking the iterating variable ("slave") against null can not detect if the
> xorg_list_for_each_entry finished without break being invoked - slave variable
> will be always non-null. This caused segfault whenever someone tried to use
> DRI_PRIME with incorrect id while having at least one render offloading slave
> Restructurize the GetScreenPrime to work as expected.
Merged with review.
c08d2b8..3dba171 master -> master
keith.packard at intel.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 810 bytes
Desc: not available
More information about the xorg-devel