commit | db1e18de98c8bdf8a2bfc07623ff67621aa4a332 | [log] [tgz] |
---|---|---|
author | Axel Lin <axel.lin@gmail.com> | Fri Jul 23 05:53:49 2010 +0000 |
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | Tue Aug 03 07:45:20 2010 +0100 |
tree | 3681c2d5823befcc606d95bd06f5c4ca310986ae | |
parent | 62f5ad6733b872e14d671b615850eb5bd1cd7e30 [diff] |
ASoC: wm8940: fix a memory leak if wm8940_register return error This patch adds checking for wm8940_register return value, and does kfree(wm8940) if wm8940_register() fail. 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>