Commit d45e2a3d authored by Oder Chiou's avatar Oder Chiou Committed by Greg Kroah-Hartman
Browse files

ASoC: rt5682: Fix a problem with error handling in the io init function of the soundwire



commit 9266d954 upstream.

The device checking error should be a jump to pm_runtime_put_autosuspend()
as done before returning value.

Fixes: 867f8d18 ('ASoC: rt5682: fix getting the wrong device id when the suspend_stress_test')
Reviewed-by: default avatarBard Liao <bard.liao@intel.com>
Signed-off-by: default avatarOder Chiou <oder_chiou@realtek.com>
Signed-off-by: default avatarPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20210607222239.582139-13-pierre-louis.bossart@linux.intel.com


Signed-off-by: default avatarMark Brown <broonie@kernel.org>
Signed-off-by: default avatarNobuhiro Iwamatsu <nobuhiro1.iwamatsu@toshiba.co.jp>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 977baccb
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment