From: Ben Widawsky Date: Thu, 20 Feb 2014 19:47:07 +0000 (-0800) Subject: drm/i915/bdw: Free PPGTT struct X-Git-Tag: v3.15-rc1~51^2~55^2~94 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b18b6bde300e1abe30e8b27501411a4b4a95ffeb;p=pandora-kernel.git drm/i915/bdw: Free PPGTT struct GEN8 never freed the PPGTT struct. As GEN8 doesn't use full PPGTT, the leak is small and only found on a module reload. ie. I don't think this needs to go to stable. v2: The very naive, kfree in gen8 ppgtt cleanup, is subject to a double free on PPGTT initialization failure. (Spotted by Imre). Instead this patch pulls the ppgtt struct freeing out of the cleanup and leaves it to the allocators/callers or the one doing the last kref_put as in standard convention Reported-by: Ville Syrjälä Signed-off-by: Ben Widawsky Reviewed-by: Imre Deak Signed-off-by: Daniel Vetter --- Reading git-diff-tree failed