From: Chris Wilson Date: Sat, 24 Jul 2010 17:29:37 +0000 (+0100) Subject: agp/intel: Destroy the scatterlist on allocation failure X-Git-Tag: v2.6.36-rc1~540^2~11^2~24 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=831cd4453598b2c8e193f077023910c6b0c39558;p=pandora-kernel.git agp/intel: Destroy the scatterlist on allocation failure A side-effect of being able to use custom page allocations with the sg_table is that it cannot reap the partially constructed scatterlist if fails to allocate a page. So we need to call sg_free_table() ourselves if sg_alloc_table() fails. Signed-off-by: Chris Wilson Cc Dave Airlie Signed-off-by: Eric Anholt --- Reading git-diff-tree failed