]> git.karo-electronics.de Git - karo-tx-linux.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 6 May 2014 14:59:20 +0000 (07:59 -0700)
commitd5421c54b0a6c751f3b8e3141381ffa7e4e6e0ff
treef2270c42c005efb9a0dd6f5bfa8314e79a9277bb
parentaf3d6c44de2b9b79682156194e48ad30e2830ccd
ASoC: pcm: Drop incorrect double/extra frees

commit 017d9491ce203c620ad1377f46a3ce78d554b2de upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/soc/soc-pcm.c