diff options
author | françois romieu <romieu@fr.zoreil.com> | 2012-12-01 14:08:50 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-12-02 02:39:17 +0100 |
commit | 892a925e42adb8192a3c832ad29cbc780fc466f6 (patch) | |
tree | c89458159f626aa6b722d04331b1bb43c258d150 /drivers/rtc/hctosys.c | |
parent | tcp: fix crashes in do_tcp_sendpages() (diff) | |
download | linux-892a925e42adb8192a3c832ad29cbc780fc466f6.tar.xz linux-892a925e42adb8192a3c832ad29cbc780fc466f6.zip |
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>
Diffstat (limited to 'drivers/rtc/hctosys.c')
0 files changed, 0 insertions, 0 deletions