]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: Intel: Skylake: fix memory leak of module on error exit path
authorColin Ian King <colin.king@canonical.com>
Thu, 29 Sep 2016 17:32:12 +0000 (18:32 +0100)
committerMark Brown <broonie@kernel.org>
Thu, 29 Sep 2016 18:21:03 +0000 (11:21 -0700)
commit64053b75f54dbace84623c34fbeed99616098af8
tree37570151b1860c36b98aa74a2099fabd3c914edb
parent2c597dab1f33b00ce7e32ed73397ba391d5d1672
ASoC: Intel: Skylake: fix memory leak of module on error exit path

Currently there is a memory leak of module on a ENOMEM return path.
Fix this by kfree'ing module before returning.

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/skylake/skl-sst-utils.c