diff options
author | Guennadi Liakhovetski <g.liakhovetski@gmx.de> | 2017-08-08 08:56:22 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@s-opensource.com> | 2017-08-20 08:09:00 -0400 |
commit | dfa6f2400c1f0bb2183996ac1c74f1fc859fca32 (patch) | |
tree | f0ffaecba577fff40fe93073d045f7989fb41930 /drivers/media/usb/uvc/uvc_driver.c | |
parent | 7e09f7d5c790278ab98e5f2c22307ebe8ad6e8ba (diff) | |
download | talos-obmc-linux-dfa6f2400c1f0bb2183996ac1c74f1fc859fca32.tar.gz talos-obmc-linux-dfa6f2400c1f0bb2183996ac1c74f1fc859fca32.zip |
media: uvcvideo: Fix .queue_setup() to check the number of planes
According to documentation of struct vb2_ops the .queue_setup() callback
should return an error if the number of planes parameter contains an
invalid value on input. Fix this instead of ignoring the value.
Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@intel.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Diffstat (limited to 'drivers/media/usb/uvc/uvc_driver.c')
0 files changed, 0 insertions, 0 deletions