media: videobuf2: Fix IS_ERR checking in vb2_dc_put_userptr()
authorMa Ke <make_ruc2021@163.com>
Thu, 12 Oct 2023 07:45:19 +0000 (15:45 +0800)
committerHans Verkuil <hverkuil-cisco@xs4all.nl>
Fri, 13 Oct 2023 09:33:22 +0000 (11:33 +0200)
commit554df753a684ffef5be83aa8cbb35adaf6240bf3
tree34df0e6da8f4b706411140bee6a57a39b82f3c79
parent2a76e7679b594ea3e1b3b7fb6c3d67158114020d
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: Ma Ke <make_ruc2021@163.com>
Acked-by: Tomasz Figa <tfiga@chromium.org>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
drivers/media/common/videobuf2/videobuf2-dma-contig.c