]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ASoC: Intel: Skylake: Always acquire runtime pm ref on unload
authorLukas Wunner <lukas@wunner.de>
Thu, 20 Oct 2016 10:26:16 +0000 (12:26 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 18 Nov 2016 09:51:52 +0000 (10:51 +0100)
commit2140d4fd92772a4623514a18a7dd790fc57dc004
tree0787ce3598ebd9cdc1f55c3fb47db9fbc7d33f55
parent5037fdbc62c27422a319e90be18a534d2cc17ef9
ASoC: Intel: Skylake: Always acquire runtime pm ref on unload

commit 6d13f62d931ba638e54ba56f3a7dd3080ffb485a upstream.

skl_probe() releases a runtime pm ref unconditionally wheras
skl_remove() acquires one only if the device is wakeup capable.
Thus if the device is not wakeup capable, unloading and reloading
the module will result in the refcount being decreased below 0.
Fix it.

Fixes: d8c2dab8381d ("ASoC: Intel: Add Skylake HDA audio driver")
Signed-off-by: Lukas Wunner <lukas@wunner.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/soc/intel/skylake/skl.c