commit | 892a925e42adb8192a3c832ad29cbc780fc466f6 | [log] [tgz] |
---|---|---|
author | françois romieu <romieu@fr.zoreil.com> | Sat Dec 01 13:08:50 2012 +0000 |
committer | David S. Miller <davem@davemloft.net> | Sat Dec 01 20:39:17 2012 -0500 |
tree | c89458159f626aa6b722d04331b1bb43c258d150 | |
parent | 64022d0b4e93ea432e95db55a72b8a1c5775f3c0 [diff] |
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 <romieu@fr.zoreil.com> Signed-off-by: David S. Miller <davem@davemloft.net>