]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: Intel: Skylake: Fix available clock counter incrementation
authorAmadeusz Sławiński <amadeuszx.slawinski@linux.intel.com>
Mon, 24 Feb 2020 12:52:02 +0000 (07:52 -0500)
committerMark Brown <broonie@kernel.org>
Mon, 24 Feb 2020 20:34:07 +0000 (20:34 +0000)
commit1b92cbe032bb00cfe53a8d7464fb611d5f1f1c63
tree640f2b7cc6c206e37e845e5757ef2867991acdff
parentc0405eb0f976089302e9751aa59fdc372b626719
ASoC: Intel: Skylake: Fix available clock counter incrementation

Incrementation of avail_clk_cnt was incorrectly moved to error path. Put
it back to success path.

Fixes: 481ffeefc335e9 ('ASoC: Intel: Skylake: Fix NULL ptr dereference when unloading clk dev')
Signed-off-by: Amadeusz Sławiński <amadeuszx.slawinski@linux.intel.com>
Reviewed-by: Cezary Rojewski <cezary.rojewski@intel.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20200224125202.13784-1-amadeuszx.slawinski@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/skylake/skl-ssp-clk.c