]> asedeno.scripts.mit.edu Git - linux.git/commit
ASoC: soc-generic-dmaengine-pcm: Fix error handling
authorFabio Estevam <fabio.estevam@nxp.com>
Thu, 22 Feb 2018 19:02:21 +0000 (16:02 -0300)
committerMark Brown <broonie@kernel.org>
Mon, 26 Feb 2018 11:05:11 +0000 (11:05 +0000)
commitf91b1e73ccde71d4bc69ae10d475196df38844ab
tree6f4c7d71e95698c8406d2aea95c7d0bd7944e710
parent4e3630101261f6ef8bf7ae171ace957d5753d093
ASoC: soc-generic-dmaengine-pcm: Fix error handling

When dmaengine_pcm_request_chan_of() fails it should release
the previously acquired resources, which in this case is to
call kfree(pcm), so jump to the correct point in the error
path.

Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/soc-generic-dmaengine-pcm.c