st/xorg: Make sure we don't overrun the fence array in block handler

This commit is contained in:
Jakob Bornecrantz 2009-12-30 04:22:12 +01:00
parent 3bcf7d7d7b
commit 53e314cb80

View file

@ -467,7 +467,7 @@ static void drv_block_handler(int i, pointer blockData, pointer pTimeout,
* quite small. Let us get a fair way ahead of hardware before
* throttling.
*/
for (j = 0; j < XORG_NR_FENCES; j++)
for (j = 0; j < XORG_NR_FENCES - 1; j++)
ms->screen->fence_reference(ms->screen,
&ms->fence[j],
ms->fence[j+1]);