remarkable-linux/drivers/media
Laurent Pinchart 77a3c6fd90 [media] vb2: Don't WARN when v4l2_buffer.bytesused is 0 for multiplanar buffers
Commit f61bf13b6a ("[media] vb2: add allow_zero_bytesused flag to the
vb2_queue struct") added a WARN_ONCE to catch usage of a deprecated API
using a zero value for v4l2_buffer.bytesused.

However, the condition is checked incorrectly, as the v4L2_buffer
bytesused field is supposed to be ignored for multiplanar buffers. This
results in spurious warnings when using the multiplanar API.

Fix it by checking v4l2_buffer.bytesused for uniplanar buffers and
v4l2_plane.bytesused for multiplanar buffers.

Fixes: f61bf13b6a ("[media] vb2: add allow_zero_bytesused flag to the vb2_queue struct")

Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Cc: stable@vger.kernel.org # for v4.0
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
2015-06-22 09:52:58 -03:00
..
common [media] b2c2: Add option to skip the first 6 pid filters 2015-06-09 20:57:56 -03:00
dvb-core [media] dvb-core: prevent some corruption the legacy ioctl 2015-06-10 11:47:56 -03:00
dvb-frontends ts2020: fix compilation on i386 2015-06-10 12:26:18 -03:00
firewire [media] dvb: Get rid of typedev usage for enums 2015-06-09 17:47:35 -03:00
i2c [media] s5k5baf: Convert use of __constant_cpu_to_be16 to cpu_to_be16 2015-06-10 11:43:19 -03:00
mmc [media] siano: register media controller earlier 2015-02-26 09:10:39 -03:00
pci [media] mantis: cleanup a warning 2015-06-18 14:32:21 -03:00
platform [media] bdisp-debug: don't try to divide by s64 2015-06-11 07:34:30 -03:00
radio [media] radio-si470x-i2c: Pass the IRQF_ONESHOT flag 2015-06-06 07:34:08 -03:00
rc [media] rc/keymaps: add keytable for Twinhan DTV CAB CI 2015-06-10 11:52:25 -03:00
tuners [media] fc2580: add missing error status when probe() fails 2015-06-09 17:22:57 -03:00
usb [media] au0828: move dev->boards atribuition to happen earlier 2015-06-10 12:39:35 -03:00
v4l2-core [media] vb2: Don't WARN when v4l2_buffer.bytesused is 0 for multiplanar buffers 2015-06-22 09:52:58 -03:00
Kconfig media controller: add EXPERIMENTAL to Kconfig option for DVB support 2015-05-08 14:48:49 -03:00
Makefile
media-device.c
media-devnode.c
media-entity.c