diff options
author | Axel Lin <axel.lin@gmail.com> | 2010-07-23 05:53:45 +0000 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2010-08-03 07:43:52 +0100 |
commit | 085efd28b65582fac459359672421a1c479e7db1 (patch) | |
tree | e3c757bd4bacb91e164588d5c7af39ccd781cfa0 /init | |
parent | 7bcaad919bc7aaa084f5884aa15654fe1fa4c77f (diff) | |
download | op-kernel-dev-085efd28b65582fac459359672421a1c479e7db1.zip op-kernel-dev-085efd28b65582fac459359672421a1c479e7db1.tar.gz |
ASoC: da7210: fix a memory leak if failed to initialise da7210 audio codec
da7210 should be kfreed if da7210_init() return error.
This patch also fixes the error handing in the case of snd_soc_register_dai()
fail by adding snd_soc_unregister_codec() in error path.
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'init')
0 files changed, 0 insertions, 0 deletions