[alsa-devel] [PATCH 1/2] ASoC: soc-generic-dmaengine-pcm: Fix error handling

Fabio Estevam festevam at gmail.com
Mon Feb 26 15:35:46 CET 2018


On Mon, Feb 26, 2018 at 11:25 AM, Lars-Peter Clausen <lars at metafoo.de> wrote:

> This creates a resource leak. dmaengine_pcm_request_chan_of() requests both
> transmit and receive channels. It might return with an error if one of them
> fails, but the other one succeeded. In this case we need to call
> dmaengine_pcm_release_chan() to free the requested channel.

Ok, I will send a revert.


More information about the Alsa-devel mailing list