mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-03 09:37:03 +07:00
V4L/DVB: v4l: mem2mem_testdev: fix errorenous comparison
Output buffer has to be at least the size of input buffer, not the other way around. Signed-off-by: Pawel Osciak <p.osciak@samsung.com> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:
parent
23f0cb62ba
commit
b17a200f92
@ -239,7 +239,7 @@ static int device_process(struct m2mtest_ctx *ctx,
|
||||
return -EFAULT;
|
||||
}
|
||||
|
||||
if (in_buf->vb.size < out_buf->vb.size) {
|
||||
if (in_buf->vb.size > out_buf->vb.size) {
|
||||
v4l2_err(&dev->v4l2_dev, "Output buffer is too small\n");
|
||||
return -EINVAL;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user