[PATCH] dri2: Fix detection of wrong prime_id in GetScreenPrime.
Keith Packard
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
> configured.
>
> 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
Type: application/pgp-signature
Size: 810 bytes
Desc: not available
URL: <http://lists.x.org/archives/xorg-devel/attachments/20140522/a9ba3356/attachment.sig>
More information about the xorg-devel
mailing list