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)
commit0730bd2e2ade00d88647b13a0c17cde254ddf56e
tree37570151b1860c36b98aa74a2099fabd3c914edb
parent5919a3898136aae4d2cb4b18b44f70f7b185aa47
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