drm/i915: fix up error cleanup in i915_gem_object_bind_to_gtt
authorDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 22 Jul 2013 10:12:38 +0000 (12:12 +0200)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 24 Jul 2013 08:37:08 +0000 (10:37 +0200)
commitbc6bc15bd7d6bbe3dd2da65d1a81a6dec5d0fa94
treeaa6082cf576c6ba5b090ce720832c519c20a723a
parent164c8598450657d01fa75d6c997e95eb35672eef
drm/i915: fix up error cleanup in i915_gem_object_bind_to_gtt

This has been broken in

commit 2f63315692b1d3c055972ad33fc7168ae908b97b
Author: Ben Widawsky <ben@bwidawsk.net>
Date:   Wed Jul 17 12:19:03 2013 -0700

    drm/i915: Create VMAs

which resulted in an OOPS the first time around we've hit -ENOSPC.

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=67156
Cc: Imre Deak <imre.deak@intel.com>
Cc: Ben Widawsky <ben@bwidawsk.net>
Tested-by: meng <mengmeng.meng@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Ben Widawsky <ben@bwidawsk.net>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_gem.c