drivers/video: Zero next field of dequeued buffer before return dequeue_vbuf_unsafe

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao 2022-12-05 01:39:41 +08:00 committed by Petro Karashchenko
parent e15bccaa71
commit 1555c9b8f8

View File

@ -72,6 +72,7 @@ static inline vbuf_container_t *dequeue_vbuf_unsafe(video_framebuff_t *fbuf)
fbuf->vbuf_top = fbuf->vbuf_top->next;
}
ret->next = NULL;
return ret;
}