commit | 513cb31120fb5a5b02d9e42eb1d0a0bf05e227c5 | [log] [tgz] |
---|---|---|
author | Sudip Mukherjee <sudipm.mukherjee@gmail.com> | Mon Feb 22 14:14:31 2016 +0530 |
committer | Mark Brown <broonie@kernel.org> | Mon Feb 22 19:40:06 2016 +0900 |
tree | 11e1175edcf6c706f8cc3dfb020a973ad3c62808 | |
parent | 92e963f50fc74041b5e9e744c330dca48e04f08d [diff] |
ASoC: fix memory leak If dai_link is already bound then we just returned and leaked rtd and rtd->codec_dais which were allocated by soc_new_pcm_runtime(). We do not need this newly allocated rtd to check if dai_link is already binded. Lets check first if it is already binded before allocating this memory. Signed-off-by: Sudip Mukherjee <sudip.mukherjee@codethink.co.uk> Signed-off-by: Mark Brown <broonie@kernel.org>