ASoC: Intel: Delete message when IPC timeout occurs
authorLiam Girdwood <liam.r.girdwood@linux.intel.com>
Fri, 1 Aug 2014 15:08:38 +0000 (23:08 +0800)
committerMark Brown <broonie@linaro.org>
Fri, 1 Aug 2014 18:11:28 +0000 (19:11 +0100)
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>
Signed-off-by: Mark Brown <broonie@linaro.org>
sound/soc/intel/sst-haswell-ipc.c

index 9825d195b8c93673920d6c98a96234d77aad5f31..1ca71a2837619dda2a3016738003806e64d01db0 100644 (file)
@@ -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 {