ASoC: Intel: Skylake: Fix uuid_module memory leak in failure case
authorPankaj Bharadiya <pankaj.laxminarayan.bharadiya@intel.com>
Tue, 7 Nov 2017 10:46:19 +0000 (16:16 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 20 Dec 2017 09:07:27 +0000 (10:07 +0100)
commit03a48dc96505f5b900e44d50e69ea3ee3686c279
tree79a53d3d8bc487c48e70cf49688adfc53d698e46
parent9146b10f8cd64c2e467c8f98ccb19dcb15812e83
ASoC: Intel: Skylake: Fix uuid_module memory leak in failure case

[ Upstream commit f8e066521192c7debe59127d90abbe2773577e25 ]

In the loop that adds the uuid_module to the uuid_list list, allocated
memory is not properly freed in the error path free uuid_list whenever
any of the memory allocation in the loop fails to avoid memory leak.

Signed-off-by: Pankaj Bharadiya <pankaj.laxminarayan.bharadiya@intel.com>
Signed-off-by: Guneshwor Singh <guneshwor.o.singh@intel.com>
Acked-By: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/soc/intel/skylake/skl-sst-utils.c