]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
drm/i915; Only increment the user-pin-count after successfully pinning the bo
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 2 Jan 2013 10:31:22 +0000 (10:31 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 17 Jan 2013 16:46:11 +0000 (08:46 -0800)
commit8fe779f83994056e210b90463df1ddaccec4de09
tree9a57a6d8bd1feb3fc2316ce061ca27ce4a2bd220
parent2c15273e100d2f233f6dd0e993cd1d5a1043c4b8
drm/i915; Only increment the user-pin-count after successfully pinning the bo

commit 93be8788e648817d62fda33e2998eb6ca6ebf3a3 upstream.

As along the error path we do not correct the user pin-count for the
failure, we may end up with userspace believing that it has a pinned
object at offset 0 (when interrupted by a signal for example).

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/i915/i915_gem.c