diff options
author | Hans Verkuil <hans.verkuil@cisco.com> | 2018-05-23 08:09:23 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab+samsung@kernel.org> | 2018-08-31 11:23:39 -0400 |
commit | 9ac8090fda77f072815c209c80fb230e89cda18c (patch) | |
tree | 7295712f0122b5d775bff07ff470179258b8f9da /include/media | |
parent | 61add367dda6309ee1702d85344b5fcbd6ede9a1 (diff) | |
download | linux-stable-9ac8090fda77f072815c209c80fb230e89cda18c.tar.gz linux-stable-9ac8090fda77f072815c209c80fb230e89cda18c.tar.bz2 linux-stable-9ac8090fda77f072815c209c80fb230e89cda18c.zip |
media: videobuf2-v4l2: refuse qbuf if queue uses requests or vv.
Check if the vb2 queue uses requests, and if so refuse to
add buffers that are not part of a request. Also check for
the reverse: a vb2 queue did not use requests, and an attempt
was made to queue a buffer to a request.
We might relax this in the future, but for now just return
-EPERM in that case.
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Reviewed-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Diffstat (limited to 'include/media')
0 files changed, 0 insertions, 0 deletions