]> 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)
commitaa39cc347de84e2f4d66f0b0888c32dddd780052
tree5db1c430ef9d577259ad11aaf9cfb17371140c9a
parentd9770849395b56b93d25b1e2d2afe0e66901787d
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: 468d2a50f (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