Searched hist:d8e89b47 (Results 1 – 1 of 1) sorted by relevance
/openbmc/linux/arch/arm/mm/ |
H A D | dma-mapping.c | d8e89b47 Thu Sep 22 04:32:25 CDT 2011 Russell King <rmk+kernel@arm.linux.org.uk> 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: <stable@kernel.org> Reported-by: Bryan Phillippe <bp@darkforest.org> Tested-by: Bryan Phillippe <bp@darkforest.org> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk> d8e89b47 Thu Sep 22 04:32:25 CDT 2011 Russell King <rmk+kernel@arm.linux.org.uk> 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: <stable@kernel.org> Reported-by: Bryan Phillippe <bp@darkforest.org> Tested-by: Bryan Phillippe <bp@darkforest.org> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
|