Skip to content
Snippets Groups Projects
Commit 7ef4bd13 authored by Hsin-Yi Wang's avatar Hsin-Yi Wang Committed by Enric Balletbo i Serra
Browse files

FROMLIST: media: mtk-vcodec: venc: make sure buffer exists in list before removing


It is possible that empty_flush_buf is removed in mtk_venc_worker() and
then again in vb2ops_venc_stop_streaming(). However, there's no empty
list check in v4l2_m2m_buf_remove_by_buf(). Double remove causes a
kernel crash.

Signed-off-by: default avatarHsin-Yi Wang <hsinyi@chromium.org>
[acourbot: fix commit log a bit]
Signed-off-by: default avatarAlexandre Courbot <acourbot@chromium.org>
parent 7e1550c1
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment