From: françois romieu Date: Sat, 1 Dec 2012 13:08:50 +0000 (+0000) Subject: 8139cp: fix coherent mapping leak in error path. X-Git-Tag: v3.7-rc8~6^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=892a925e42adb8192a3c832ad29cbc780fc466f6;p=pandora-kernel.git 8139cp: fix coherent mapping leak in error path. cp_open [...] rc = cp_alloc_rings(cp); if (rc) return rc; cp_alloc_rings [...] mem = dma_alloc_coherent(&cp->pdev->dev, CP_RING_BYTES, &cp->ring_dma, GFP_KERNEL); - cp_alloc_rings never frees the coherent mapping it allocates - neither do cp_open when cp_alloc_rings fails Signed-off-by: Francois Romieu Signed-off-by: David S. Miller --- Reading git-diff-tree failed