drm/i915/gtt: Don't leak scratch page on mapping error
authorMika Kuoppala <mika.kuoppala@linux.intel.com>
Fri, 22 May 2015 17:04:58 +0000 (20:04 +0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Mon, 15 Jun 2015 10:12:42 +0000 (12:12 +0200)
commitea3f5d261fb0b757f95c1657f71ac86eb1778fd1
tree8aa285d7f4ddf31fba5697692fa7b01fd7fefadd
parent66c826a1754c07012e29fbe9be7013e92a5acbac
drm/i915/gtt: Don't leak scratch page on mapping error

Free the scratch page if dma mapping fails.

Signed-off-by: Mika Kuoppala <mika.kuoppala@intel.com>
Reviewed-by: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_gem_gtt.c