]> asedeno.scripts.mit.edu Git - linux.git/commit
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)
committerMark Brown <broonie@kernel.org>
Wed, 8 Nov 2017 18:56:17 +0000 (18:56 +0000)
commitf8e066521192c7debe59127d90abbe2773577e25
tree79da77ad491a4409cba52d2a023c15cf840e0ad1
parent0265ddd7b713bd8b68a9ec451761bcb87bbac4b3
ASoC: Intel: Skylake: Fix uuid_module memory leak in failure case

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>
sound/soc/intel/skylake/skl-sst-utils.c