Skip to content

Commit

Permalink
Merge branch 'fixes-for-3.6' of git://git.linaro.org/people/mszyprows…
Browse files Browse the repository at this point in the history
…ki/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()
  • Loading branch information
Linus Torvalds committed Sep 27, 2012
2 parents 3961843 + ec10665 commit b56adb5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions arch/arm/mm/dma-mapping.c
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,8 @@ static int __init atomic_pool_init(void)
(unsigned)pool->size / 1024);
return 0;
}

kfree(pages);
no_pages:
kfree(bitmap);
no_bitmap:
Expand Down

0 comments on commit b56adb5

Please sign in to comment.