commit | 50e8ce14698273d3c493b2e66f323f6b18eac099 | [log] [tgz] |
---|---|---|
author | Kulikov Vasiliy <segooon@gmail.com> | Fri Jul 16 20:16:54 2010 +0400 |
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | Sat Jul 17 19:45:56 2010 +0100 |
tree | 9d55a58490c8cf585421e05705e6c54315c77dc8 | |
parent | 51b6dfb627d785ee92c2bd1e159e2de47cdc29c3 [diff] |
ASoC: imx: check kzalloc() result and fix memory leak If kzalloc() fails we must exit with -ENOMEM. Also we must free allocated runtime->private_data on error as it would be lost on next call to snd_imx_open(). Signed-off-by: Kulikov Vasiliy <segooon@gmail.com> Acked-by: Liam Girdwood <lrg@slimlogic.co.uk> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>