diff options
author | Ma Ke <[email protected]> | 2023-10-03 17:13:15 +0800 |
---|---|---|
committer | Hans Verkuil <[email protected]> | 2023-10-13 11:33:22 +0200 |
commit | feec1b29d7a81be3c1a0a0865eed67d05d4089c9 (patch) | |
tree | 093f969704ca90997cf1949c617bd7f56b04e3c6 /tools/testing/selftests/bpf/progs/test_autoload.c | |
parent | be521bf7bfad4e4bd4c3e1d2853aeb563a1e51d6 (diff) |
media: videobuf2: Fix IS_ERR checking in vb2_vmalloc_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 <[email protected]>
Acked-by: Tomasz Figa <[email protected]>
Signed-off-by: Hans Verkuil <[email protected]>
[hverkuil: add space between ){]
Signed-off-by: Hans Verkuil <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/progs/test_autoload.c')
0 files changed, 0 insertions, 0 deletions