]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: wm0010: Fix resource leak
authorDimitris Papastamos <dp@opensource.wolfsonmicro.com>
Wed, 31 Jul 2013 12:28:52 +0000 (13:28 +0100)
committerMark Brown <broonie@linaro.org>
Wed, 31 Jul 2013 13:50:34 +0000 (14:50 +0100)
commit53b43b83e8c19c219e9df6691a9257c3876fe507
tree79b6f89da72d486951f90404f62af1e2fbbf1611
parent89760c3efeaee3e1234f1008d850eba9fe41fba6
ASoC: wm0010: Fix resource leak

If kzalloc() fails for `img' then we are going to leak the memory
for `out'.  We are freeing the memory of all the tx/rx transfers
but the tx/rx buf pointers will be NULL if we drop out earlier.

Signed-off-by: Dimitris Papastamos <dp@opensource.wolfsonmicro.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
sound/soc/codecs/wm0010.c