video: rockchip: mpp: remove the redundant kref_get operation

The redundant kref_get for the abort task will cause the task to fail to
free.

Signed-off-by: Yandong Lin <yandong.lin@rock-chips.com>
Change-Id: I8e9fa2ab75c460988c55022e15eb2f6ff55a7ada
This commit is contained in:
Yandong Lin
2023-01-03 15:54:33 +08:00
committed by Tao Huang
parent 6863df1d71
commit 1becf17b06

View File

@@ -1414,7 +1414,6 @@ again:
mutex_lock(&queue->pending_lock);
list_del_init(&task->queue_link);
kref_get(&task->ref);
set_bit(TASK_STATE_ABORT_READY, &task->state);
set_bit(TASK_STATE_PROC_DONE, &task->state);
@@ -2001,7 +2000,6 @@ get_task:
mutex_lock(&queue->pending_lock);
list_del_init(&mpp_task->queue_link);
kref_get(&mpp_task->ref);
set_bit(TASK_STATE_ABORT_READY, &mpp_task->state);
set_bit(TASK_STATE_PROC_DONE, &mpp_task->state);