kernel/drivers/media/platform/s5p-mfc/s5p_mfc_ctrl.c
.. .. @@ -468,8 +468,10 @@ 468 468 s5p_mfc_hw_call(dev->mfc_ops, try_run, dev); 469 469 /* Wait until instance is returned or timeout occurred */ 470 470 if (s5p_mfc_wait_for_done_ctx(ctx, 471 - S5P_MFC_R2H_CMD_CLOSE_INSTANCE_RET, 0))471 + S5P_MFC_R2H_CMD_CLOSE_INSTANCE_RET, 0)){472 + clear_work_bit_irqsave(ctx);472 473 mfc_err("Err returning instance\n"); 474 + }473 475 474 476 /* Free resources */ 475 477 s5p_mfc_hw_call(dev->mfc_ops, release_codec_buffers, ctx);