Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9c88935e authored by Harsh Shah's avatar Harsh Shah Committed by Gerrit - the friendly Code Review server
Browse files

msm: camera: core: Add missing list_del_init



Without list_del_init, this request will not be deleted from previous
list and also added to free list. This may result in double add.

Change-Id: I5503acb13260d01d72bd07bb2a7d6afe7ffc430d
Signed-off-by: default avatarHarsh Shah <harshs@codeaurora.org>
parent 88a33ae3
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -178,6 +178,7 @@ static void cam_context_sync_callback(int32_t sync_obj, int status, void *data)
			req->ctx = NULL;
			req->flushed = 0;
			spin_lock(&ctx->lock);
			list_del_init(&req->list);
			list_add_tail(&req->list, &ctx->free_req_list);
			spin_unlock(&ctx->lock);
		}