Skip to content
Commit 35a9611c authored by Chris Wilson's avatar Chris Wilson
Browse files

drm/i915: Initialize return value for empty i915_gem_object_unbind()



If the obj->vma_list is empty, we immediately return ret. However, we
are doing so having never set it to any value, it should be zero!

Reported-by: default avatarMatthew Auld <matthew.auld@intel.com>
References: https://bugs.freedesktop.org/show_bug.cgi?id=97343
Fixes: aa653a68

 ("drm/i915: Be more careful when unbinding vma")
Signed-off-by: default avatarChris Wilson <chris@chris-wilson.co.uk>
Cc: Matthew Auld <matthew.auld@intel.com>
Link: http://patchwork.freedesktop.org/patch/msgid/1471196681-30043-1-git-send-email-chris@chris-wilson.co.uk
Reviewed-by: default avatarMatthew Auld <matthew.auld@intel.com>
parent 0b1de5d5
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment