]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: Intel: Skylake: Fix mcps freeup after module unbind failure
authorGuneshwor Singh <guneshwor.o.singh@intel.com>
Wed, 3 Feb 2016 12:29:46 +0000 (17:59 +0530)
committerMark Brown <broonie@kernel.org>
Thu, 4 Feb 2016 11:36:14 +0000 (11:36 +0000)
commit52d93d1037bd88afdaec929b8ca0daf52413f142
tree0bc438a1cd327ada3a4501be614fb61713e7512a
parent68c51c92fe27ae1c7b58e36350d0e0f677c9e8d6
ASoC: Intel: Skylake: Fix mcps freeup after module unbind failure

While cleaning resources on module pmd event, we check for return
of skl_unbind_modules(). On failure this causes leak as all modules
attached do not have resources freed.

So ignore return value of module unbind and continue freeing
resources. This makes dapm state and resources correct.

Signed-off-by: Guneshwor Singh <guneshwor.o.singh@intel.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/skylake/skl-topology.c