françois romieu 892a925e42 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>
2012-12-01 20:39:17 -05:00
..
2012-06-06 09:31:33 -07:00
2012-09-27 18:31:58 -04:00
2012-10-07 00:40:54 -04:00
2012-06-06 09:31:33 -07:00
2012-07-09 14:42:30 -07:00
2012-08-06 09:48:31 -07:00
2012-10-07 00:40:54 -04:00
2012-06-06 09:31:33 -07:00
2012-11-20 15:51:55 -05:00
2012-07-16 22:38:27 -07:00
2012-11-14 21:50:10 -05:00
2012-02-22 14:44:41 -05:00
2012-07-16 22:38:27 -07:00