linux-sg2042/drivers/net/ethernet/realtek
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
..
8139cp.c 8139cp: fix coherent mapping leak in error path. 2012-12-01 20:39:17 -05:00
8139too.c sections: fix section conflicts in drivers/net 2012-10-06 03:04:42 +09:00
Kconfig drivers/net: fix up stale paths from driver reorg 2012-01-30 12:54:40 -05:00
Makefile
atp.c Remove all #inclusions of asm/system.h 2012-03-28 18:30:03 +01:00
atp.h
r8169.c r8169: allow multicast packets on sub-8168f chipset. 2012-11-03 15:27:07 -04:00