drm/i915: Fix use of invalid array size for ring->sync_seqno
authorChris Wilson <chris@chris-wilson.co.uk>
Fri, 21 Jan 2011 10:07:18 +0000 (10:07 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Sun, 23 Jan 2011 12:52:11 +0000 (12:52 +0000)
commit076e2c0eb83f1a0e2e7d0ae1e4d4c0f7b13f1f64
tree8400486c1b98ef0cd0f960666c0e5b9beec81bab
parentc7dca47bd6fbb7c215cb1ce6bc40398b4b017752
drm/i915: Fix use of invalid array size for ring->sync_seqno

There are I915_NUM_RINGS-1 inter-ring synchronisation counters, but we
were clearing I915_NUM_RINGS of them. Oops.

Reported-by: Jiri Slaby <jirislaby@gmail.com>
Tested-by: Jiri Slaby <jirislaby@gmail.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
drivers/gpu/drm/i915/i915_gem.c
drivers/gpu/drm/i915/i915_gem_execbuffer.c