[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20121201.204123.2243524800902935850.davem@davemloft.net>
Date: Sat, 01 Dec 2012 20:41:23 -0500 (EST)
From: David Miller <davem@...emloft.net>
To: romieu@...zoreil.com
Cc: jgarzik@...ox.com, dwmw2@...radead.org, jasowang@...hat.com,
netdev@...r.kernel.org, jogreene@...hat.com
Subject: Re: [PATCH net 1/1] 8139cp: fix coherent mapping leak in error
path.
From: Francois Romieu <romieu@...zoreil.com>
Date: Sun, 2 Dec 2012 00:08:50 +0100
> 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@...zoreil.com>
Applied.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists