]> git.karo-electronics.de Git - linux-beck.git/commit
drm/i915: Fix set_caching locking
authorBen Widawsky <ben@bwidawsk.net>
Wed, 26 Sep 2012 23:15:20 +0000 (16:15 -0700)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Thu, 27 Sep 2012 06:45:11 +0000 (08:45 +0200)
commit3bc2913e2cb74aac8af90b46fa251dfb8d854665
tree888e254ccaf8390dbbd554b30c685c420098913f
parent0c96c65b48fba3ffe9822a554cbc0cd610765cd5
drm/i915: Fix set_caching locking

On the EINVAL case we don't release struct_mutex. It should be safe to
grab the lock after checking the parameters, which also resolves the
issues.

Signed-off-by: Ben Widawsky <ben@bwidawsk.net>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_gem.c