]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915/execbuffer: Correctly clear the current object list upon EFAULT
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 10 Jan 2011 12:09:12 +0000 (12:09 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 11 Jan 2011 22:55:29 +0000 (22:55 +0000)
commit3679c5a69c70e919c33975c6963818781445224f
tree3ecb28846e2c19cf33d0846b8c5b24d96c933844
parent56b16088bc08a85fc5d742ad6326820c1c4b500b
drm/i915/execbuffer: Correctly clear the current object list upon EFAULT

Before releasing the lock in order to copy the relocation list from user
pages, we need to drop all the object references as another thread may
usurp and execute another batchbuffer before we reacquire the lock.
However, the code was buggy and failed to clear the list...

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Cc: stable@kernel.org
drivers/gpu/drm/i915/i915_gem_execbuffer.c