From: Wayne Zou Date: Thu, 23 Aug 2012 06:54:46 +0000 (+0800) Subject: ENGR00221203-1 IPU Device: Avoid release resource twice when timeout X-Git-Tag: v3.0.35-fsl_4.1.0~706 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=fa7c12b1dd007a07f098946ed62defb4f978682a;p=karo-tx-linux.git ENGR00221203-1 IPU Device: Avoid release resource twice when timeout Avoid release resource twice when timeout happen. Signed-off-by: Wayne Zou --- diff --git a/drivers/mxc/ipu3/ipu_device.c b/drivers/mxc/ipu3/ipu_device.c index 308b8cba7ef7..60fb3defd57d 100644 --- a/drivers/mxc/ipu3/ipu_device.c +++ b/drivers/mxc/ipu3/ipu_device.c @@ -2948,10 +2948,6 @@ out: spin_unlock_irqrestore(&ipu_task_list_lock, flags); if (!tsk->ipu) continue; - if (STATE_IN_PROGRESS == tsk->state) { - do_task_release(tsk, 1); - put_vdoa_ipu_res(tsk, 0); - } if (tsk->state != STATE_OK) { dev_err(tsk->dev, "ERR:[0x%p] no-0x%x,id:%d, sp_tsk state: %s\n",