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:
parent
e15bccaa71
commit
1555c9b8f8
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user