diff options
author | Kulikov Vasiliy <segooon@gmail.com> | 2010-07-16 20:16:34 +0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2010-07-17 19:45:56 +0100 |
commit | 51b6dfb627d785ee92c2bd1e159e2de47cdc29c3 (patch) | |
tree | ecf1b55a31e5fa96a404fa2b8383a2f71dd604fb /scripts/namespace.pl | |
parent | 55938b106ff4028f9e8b23b1bcb16d7cd615bee7 (diff) | |
download | op-kernel-dev-51b6dfb627d785ee92c2bd1e159e2de47cdc29c3.zip op-kernel-dev-51b6dfb627d785ee92c2bd1e159e2de47cdc29c3.tar.gz |
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>
Diffstat (limited to 'scripts/namespace.pl')
0 files changed, 0 insertions, 0 deletions