linux/drivers/media
Tiffany Lin 5eb6e56e88 [media] media: vb2 dma-contig: Fully cache synchronise buffers in prepare and finish
commit d9a985883f upstream.

In videobuf2 dma-contig memory type the prepare and finish ops, instead of
passing the number of entries in the original scatterlist as the "nents"
parameter to dma_sync_sg_for_device() and dma_sync_sg_for_cpu(), the value
returned by dma_map_sg() was used. Albeit this has been suggested in
comments of some implementations (which have since been corrected), this
is wrong.

Fixes: 199d101efd ("v4l: vb2-dma-contig: add prepare/finish to dma-contig allocator")

Signed-off-by: Tiffany Lin <tiffany.lin@mediatek.com>
Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
Signed-off-by: Luis Henriques <luis.henriques@canonical.com>
History 2015-12-13 17:48:50 +00:00
..
common [media] siano: add support for PCTV 77e 2014-11-17 14:11:49 +00:00
dvb-core media: af9035: new IDs: add support for PCTV 78e and PCTV 79e 2014-10-05 13:41:10 -07:00
dvb-frontends [media] cx24117: fix a buffer overflow when checking userspace params 2015-07-09 14:35:58 +01:00
firewire firewire: introduce fw_driver.probe and .remove methods 2013-06-09 18:15:00 +02:00
i2c [media] smiapp-pll: Correct clock debug prints 2015-01-05 13:33:41 +00:00
mmc [media] siano: get rid of CammelCase from smscoreapi.h 2013-03-21 10:03:16 -03:00
parport [media] media: parport: Fix format string mismatch in bw-qcam.c 2014-05-23 12:18:53 -03:00
pci media: cx18: fix kernel oops with tda8290 tuner 2014-10-05 13:41:10 -07:00
platform [media] v4l: omap3isp: Fix sub-device power management code 2015-09-28 10:21:30 +01:00
radio [media] si4713: fix Kconfig dependencies 2014-03-28 18:06:55 -03:00
rc [media] rc-core: fix remove uevent generation 2015-09-28 10:21:30 +01:00
tuners [media] m88ts2022: fix 32bit overflow on filter calc 2014-11-17 14:11:50 +00:00
usb [media] stk1160: Make sure current buffer is released 2015-05-05 11:09:42 +01:00
v4l2-core [media] media: vb2 dma-contig: Fully cache synchronise buffers in prepare and finish 2015-12-13 17:48:50 +00:00
Kconfig [media] subdev autoselect only works if I2C and I2C_MUX is selected 2013-12-21 06:03:06 -02:00
Makefile [media] move i2c files into drivers/media/i2c 2012-09-06 18:42:54 -03:00
media-device.c media: media-device: Remove duplicated memset() in media_enum_entities() 2014-09-17 09:21:49 -07:00
media-devnode.c [media] media: Use a better owner for the media device 2014-05-13 13:39:00 -03:00
media-entity.c [media] media: Check for active links on pads with MEDIA_PAD_FL_MUST_CONNECT flag 2013-12-04 15:03:45 -02:00