Skip to content
Commit 554df753 authored by Ma Ke's avatar Ma Ke Committed by Hans Verkuil
Browse files

media: videobuf2: Fix IS_ERR checking in vb2_dc_put_userptr()



In order to avoid error pointers from frame_vector_pages(), we could
use IS_ERR() to check the return value to fix this. This checking
operation could make sure that vector contains pages.

Signed-off-by: default avatarMa Ke <make_ruc2021@163.com>
Acked-by: default avatarTomasz Figa <tfiga@chromium.org>
Signed-off-by: default avatarHans Verkuil <hverkuil-cisco@xs4all.nl>
parent 2a76e767
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment