From: Dan Carpenter Date: Wed, 18 Mar 2015 08:21:58 +0000 (+0300) Subject: drm/i915: memory leak in __i915_gem_vma_create() X-Git-Tag: omap-for-v4.1/fixes-rc1~82^2~20^2~74 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dabde5c7320059af62ce0a706ad11c793bad1345;p=pandora-kernel.git drm/i915: memory leak in __i915_gem_vma_create() In the original code then if WARN_ON(i915_is_ggtt(vm) != !!ggtt_view) was true then we leak "vma". Presumably that doesn't happen often but static checkers complain and this bug is easy to fix. Fixes: c3bbb6f2825d ('drm/i915: Do not use ggtt_view with (aliasing) PPGTT') Signed-off-by: Dan Carpenter Reviewed-by: Jani Nikula Signed-off-by: Daniel Vetter --- Reading git-diff-tree failed