Merge branch 'fixes-for-3.6' of git://git.linaro.org/people/mszyprowski/linux-dma-mapping
Pull ARM dma-mapping fix from Marek Szyprowski: "This patch fixes a potential memory leak in the ARM dma-mapping code." * 'fixes-for-3.6' of git://git.linaro.org/people/mszyprowski/linux-dma-mapping: ARM: dma-mapping: Fix potential memory leak in atomic_pool_init()
This commit is contained in:
@@ -346,6 +346,8 @@ static int __init atomic_pool_init(void)
|
|||||||
(unsigned)pool->size / 1024);
|
(unsigned)pool->size / 1024);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
kfree(pages);
|
||||||
no_pages:
|
no_pages:
|
||||||
kfree(bitmap);
|
kfree(bitmap);
|
||||||
no_bitmap:
|
no_bitmap:
|
||||||
|
Reference in New Issue
Block a user