]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Initialize return value for empty i915_gem_object_unbind()
authorChris Wilson <chris@chris-wilson.co.uk>
Sun, 14 Aug 2016 17:44:40 +0000 (18:44 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Sun, 14 Aug 2016 18:38:26 +0000 (19:38 +0100)
commit2115a97823d81d589a55f97cde0aa7d6287fa100
tree6b38a6f43c3df1b9767759a5f358e163551bdef7
parentd0dc00ff60961797e9f153f819a19381f251ccf5
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: Matthew Auld <matthew.auld@intel.com>
References: https://bugs.freedesktop.org/show_bug.cgi?id=97343
Fixes: 1a2e4c0294bc ("drm/i915: Be more careful when unbinding vma")
Signed-off-by: Chris 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: Matthew Auld <matthew.auld@intel.com>
drivers/gpu/drm/i915/i915_gem.c