drm/i915: Takedown drm_mm on failed gtt setup
authorBen Widawsky <benjamin.widawsky@intel.com>
Fri, 6 Dec 2013 22:10:50 +0000 (14:10 -0800)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 18 Dec 2013 14:27:45 +0000 (15:27 +0100)
commitc39538a88dcfdbb905e60f9168d6d49460cabe57
tree5358fb452e3a37f66e23a79a2c9a172264eb8032
parent6e164c3382314a1f63526fa7a4322a17318d0e32
drm/i915: Takedown drm_mm on failed gtt setup

This was found by code inspection. If the GTT setup fails then we are
left without properly tearing down the drm_mm.

Hopefully this never happens.

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