drm/i915/gem: Fix error path to unlock if the GEM context is closed
[linux-2.6-microblaze.git] / drivers / gpu / drm / i915 / gem / i915_gem_context.c
index de6e55a..d49869b 100644 (file)
@@ -1136,7 +1136,7 @@ static int set_ppgtt(struct drm_i915_file_private *file_priv,
 
        if (i915_gem_context_is_closed(ctx)) {
                err = -ENOENT;
-               goto out;
+               goto unlock;
        }
 
        if (vm == rcu_access_pointer(ctx->vm))