]> www.infradead.org Git - users/dwmw2/linux.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 5 Oct 2019 11:13:36 +0000 (13:13 +0200)
commitfd8bd7dfb04f6ba11c473911e9208962adcb0019
tree5edaa0e444fc7b29a41977264bec60fa3c72827a
parent338c95ab2187eec71a8091f47eaf0a895d9ea8b2
ASoC: hdac_hda: fix page fault issue by removing race

[ Upstream commit 804cbf4bb063204ca6c2471baa694548aab02ce3 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
sound/soc/codecs/hdac_hda.c