Sachin Kamat ec10665cbf ARM: dma-mapping: Fix potential memory leak in atomic_pool_init()
When either of __alloc_from_contiguous or __alloc_remap_buffer fails
to provide a valid pointer, allocated memory is freed up and an error
is returned. 'pages' was however not freed before returning error.

Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
2012-09-24 08:35:03 +02:00
..
2012-03-28 18:30:01 +01:00
2011-12-08 10:30:40 +00:00
2012-03-28 18:30:01 +01:00
2012-08-25 09:11:40 +01:00
2011-12-06 11:15:25 +00:00
2012-03-28 18:30:01 +01:00