]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: pcm: fix error handling when try_module_get() fails.
authorRanjani Sridharan <ranjani.sridharan@linux.intel.com>
Mon, 8 Apr 2019 19:30:25 +0000 (12:30 -0700)
committerMark Brown <broonie@kernel.org>
Wed, 10 Apr 2019 11:28:00 +0000 (12:28 +0100)
commit588492c69f858760d3f69a893f6a5e72edbf00cd
treef43925307a15d57372c82db12db1dbb24fd6caf0
parent5cbaf3730dc57d81dcd65e201ca3f4db7e04e32f
ASoC: pcm: fix error handling when try_module_get() fails.

Handle error before returning when try_module_get() fails
to prevent inconsistent mutex lock/unlock.

Fixes: d66bc6390 (ASoC: pcm: update module refcount if
  module_get_upon_open is set)
Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/soc-pcm.c