]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ENGR00221203-1 IPU Device: Avoid release resource twice when timeout
authorWayne Zou <b36644@freescale.com>
Thu, 23 Aug 2012 06:54:46 +0000 (14:54 +0800)
committerLothar Waßmann <LW@KARO-electronics.de>
Fri, 24 May 2013 06:35:18 +0000 (08:35 +0200)
Avoid release resource twice when timeout happen.

Signed-off-by: Wayne Zou <b36644@freescale.com>
drivers/mxc/ipu3/ipu_device.c

index 308b8cba7ef75d94b492dd9ff1f2ed2d90d9330d..60fb3defd57d5b603e6cbd4625cef87778958194 100644 (file)
@@ -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",