mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-06 02:50:49 +09:00
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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user