Chris Wilson 831cd44535 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 <chris@chris-wilson.co.uk>
Cc Dave Airlie <airlied@redhat.com>
Signed-off-by: Eric Anholt <eric@anholt.net>
2010-08-01 19:35:14 -07:00
..
2009-09-24 07:21:03 -07:00
2010-04-23 02:08:44 +02:00
2010-05-17 03:06:12 +02:00
2010-06-04 15:21:44 -07:00
2009-12-10 22:55:36 +01:00
2010-05-27 09:12:50 -07:00
2010-06-04 13:37:17 -07:00
2010-05-27 09:12:50 -07:00
2010-05-27 09:12:50 -07:00
2010-05-20 19:55:01 +10:00
2010-05-21 09:34:31 -07:00
2009-09-01 01:13:31 -07:00
2009-10-14 17:36:53 +02:00
2010-01-04 12:31:21 -08:00
2010-03-02 14:43:22 -08:00