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)
commit017d9491ce203c620ad1377f46a3ce78d554b2de
tree5db1c430ef9d577259ad11aaf9cfb17371140c9a
parentdcb99fd9b08cfe1afe426af4d8d3cbc429190f15
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: e4ad1accb (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