]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: pcm: Drop incorrect double/extra frees
authorMark Brown <broonie@linaro.org>
Sat, 22 Mar 2014 18:29:15 +0000 (18:29 +0000)
committerMark Brown <broonie@linaro.org>
Sun, 23 Mar 2014 13:59:59 +0000 (13:59 +0000)
commita0a03e91f6b919c3b93fa14d26ee862ba48950de
tree5db1c430ef9d577259ad11aaf9cfb17371140c9a
parentc057ab05f4b54d4154d74896e2d2158c9be96da6
ASoC: pcm: Drop incorrect double/extra frees

The changes in "ASoC: pcm: free path list before exiting from error
conditions" actually introduced both double frees (in case where the
path list was allocated but empty) and frees of unallocated memory (in
cases where the error being handled was -ENOMEM.  Drop the commit for
now.

Fixes: fc7655002 (ASoC: pcm: free path list before exiting from error conditions)
Reported-by: Ben Hutchings <ben@decadent.org.uk>
Signed-off-by: Mark Brown <broonie@linaro.org>
Cc: stable@vger.kernel.org
sound/soc/soc-pcm.c