From: Russell King Date: Thu, 22 Sep 2011 09:32:25 +0000 (+0100) Subject: ARM: dma-mapping: free allocated page if unable to map X-Git-Tag: v3.1-rc8~9^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d8e89b47e00ee80e920761145144640aac4cf71a;p=pandora-kernel.git ARM: dma-mapping: free allocated page if unable to map If the attempt to map a page for DMA fails (eg, because we're out of mapping space) then we must not hold on to the page we allocated for DMA - doing so will result in a memory leak. Cc: Reported-by: Bryan Phillippe Tested-by: Bryan Phillippe Signed-off-by: Russell King --- Reading git-diff-tree failed