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-07-24 13:54:16 -07:00
2012-08-03 20:32:31 -07:00
2012-09-01 22:44:13 -04:00
2012-11-20 15:51:55 -05:00
2012-11-28 11:39:22 -05:00
2012-11-28 11:23:41 -05:00
2012-10-02 14:37:31 -04:00
2012-10-01 18:39:45 -04:00