diff mbox

ASoC: Intel: Delete message when IPC timeout occurs

Message ID 1406905718-31142-1-git-send-email-yang.jie@intel.com (mailing list archive)
State Accepted
Commit 97cfc751e1f2c300e093a9d2840aeee075db68d4
Headers show

Commit Message

Jie, Yang Aug. 1, 2014, 3:08 p.m. UTC
From: Liam Girdwood <liam.r.girdwood@linux.intel.com>

This fixes a bug where we dont delete the current message when an
IPC message timeout occurs.

Signed-off-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
Signed-off-by: Jie Yang <yang.jie@intel.com>
---
 sound/soc/intel/sst-haswell-ipc.c | 1 +
 1 file changed, 1 insertion(+)

Comments

Mark Brown Aug. 1, 2014, 6:12 p.m. UTC | #1
On Fri, Aug 01, 2014 at 11:08:38PM +0800, Jie Yang wrote:
> From: Liam Girdwood <liam.r.girdwood@linux.intel.com>
> 
> This fixes a bug where we dont delete the current message when an
> IPC message timeout occurs.

Applied, thanks.
diff mbox

Patch

diff --git a/sound/soc/intel/sst-haswell-ipc.c b/sound/soc/intel/sst-haswell-ipc.c
index 96373ab..5a607ab 100644
--- a/sound/soc/intel/sst-haswell-ipc.c
+++ b/sound/soc/intel/sst-haswell-ipc.c
@@ -502,6 +502,7 @@  static int tx_wait_done(struct sst_hsw *hsw, struct ipc_message *msg,
 		ipc_shim_dbg(hsw, "message timeout");
 
 		trace_ipc_error("error message timeout for", msg->header);
+		list_del(&msg->list);
 		ret = -ETIMEDOUT;
 	} else {