Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[media] vivid: fix CROP_BOUNDS typo for video output

An error was returned if composing was not supported, instead of if
cropping was not supported.

A classic copy-and-paste bug. Found with v4l2-compliance.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Cc: <stable@vger.kernel.org> # for v3.18
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>

authored by

Hans Verkuil and committed by
Mauro Carvalho Chehab
bb9ff078 5fdb9679

+1 -1
+1 -1
drivers/media/platform/vivid/vivid-vid-out.c
··· 625 625 sel->r = dev->fmt_out_rect; 626 626 break; 627 627 case V4L2_SEL_TGT_CROP_BOUNDS: 628 - if (!dev->has_compose_out) 628 + if (!dev->has_crop_out) 629 629 return -EINVAL; 630 630 sel->r = vivid_max_rect; 631 631 break;