]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: hdac_hda: fix page fault issue by removing race
authorKeyon Jie <yang.jie@linux.intel.com>
Wed, 7 Aug 2019 14:50:30 +0000 (09:50 -0500)
committerMark Brown <broonie@kernel.org>
Thu, 8 Aug 2019 19:38:53 +0000 (20:38 +0100)
commit0a9cf76fd218a44e3b279c7f8e48f9627c89ac4a
treef5d9076b955dd9086b533a0b0792032dd96acc2b
parent679d76090b5dc1bfc8bdb830d07d0f4c703aec27
ASoC: hdac_hda: fix page fault issue by removing race

There is a race between hda codec device removing and the
jack-detecting work, which will lead to a page fault issue as the
latter work is accessing codec device which could be already removed.

Here add the cancellation of jack-detecting work before codecs are actually
removed to avoid the race and fix the issue.

Bug: https://github.com/thesofproject/linux/issues/1067
Signed-off-by: Keyon Jie <yang.jie@linux.intel.com>
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20190807145030.26117-1-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/hdac_hda.c