Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7574a67e authored by Vidyakumar Athota's avatar Vidyakumar Athota
Browse files

ASoC: msm: Fix device suspend crash



Device is crashed while suspend because of calling
mutex_lock multiple times without unlock. Fix by
calling mutex_unlock properly

Change-Id: I90f151dd4b1adb7bf7600be1ef980be206a190b1
Signed-off-by: default avatarVidyakumar Athota <vathota@codeaurora.org>
CRs-Fixed: 594736
parent d2056c0d
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
/* Copyright (c) 2013, The Linux Foundation. All rights reserved.
/* Copyright (c) 2013-2014, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -111,7 +111,7 @@ static int audio_slimslave_resume(struct slim_device *audio_slim)

	mutex_lock(&suspend_lock);
	suspend = false;
	mutex_lock(&suspend_lock);
	mutex_unlock(&suspend_lock);
	return 0;
}

@@ -122,7 +122,7 @@ static int audio_slimslave_suspend(struct slim_device *audio_slim,

	mutex_lock(&suspend_lock);
	suspend = true;
	mutex_lock(&suspend_lock);
	mutex_unlock(&suspend_lock);
	return 0;
}