linux/drivers/media
Sakari Ailus 4879785ed5 [media] vb2: Fix dma_dir setting for dma-contig mem type
The last argument of vb2_dc_get_user_pages() is of type enum
dma_data_direction, but the caller, vb2_dc_get_userptr() passes a value
which is the result of comparison dma_dir == DMA_FROM_DEVICE. This results
in the write parameter to get_user_pages() being zero in all cases, i.e.
that the caller has no intent to write there.

This was broken by patch "vb2: replace 'write' by 'dma_dir'".

Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Cc: stable@vger.kernel.org  # for v3.19
Acked-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
2015-04-02 08:56:26 -03:00
..
common [media] btcx-risc: move to bt8xx 2014-12-23 10:13:19 -02:00
dvb-core [media] dvb_net: Convert local hex dump to print_hex_dump_debug 2015-02-03 18:24:44 -02:00
dvb-frontends [media] stb0899: use sign_extend32() for sign extension 2015-02-03 18:16:18 -02:00
firewire [media] firewire: Deletion of an unnecessary check before the function call "dvb_unregister_device" 2014-11-25 13:30:31 -02:00
i2c [media] adv7180: Add fast switch support 2015-02-02 11:51:38 -02:00
mmc [media] siano: fix Kconfig dependencies 2015-02-02 11:08:02 -02:00
pci [media] cx23885: fix querycap 2015-04-01 06:56:56 -03:00
platform [media] media: s5p-mfc: fix broken pointer cast on 64bit arch 2015-04-01 06:56:56 -03:00
radio [media] radio/aimslab: use mdelay instead of udelay 2015-02-02 11:07:09 -02:00
rc [media] lirc_dev: avoid potential null-dereference 2015-02-03 17:33:42 -02:00
tuners [media] si2157: change firmware variable name and type 2015-01-29 18:50:28 -02:00
usb [media] media: fix gspca drivers build dependencies 2015-03-03 10:16:31 -03:00
v4l2-core [media] vb2: Fix dma_dir setting for dma-contig mem type 2015-04-02 08:56:26 -03:00
Kconfig [media] bq/c-qcam, w9966, pms: move to staging in preparation for removal 2014-12-16 23:21:44 -02:00
Makefile [media] bq/c-qcam, w9966, pms: move to staging in preparation for removal 2014-12-16 23:21:44 -02:00
media-device.c [media] media: Use strlcpy instead of custom code 2014-09-21 20:27:08 -03:00
media-devnode.c [media] media-devnode: just return 0 instead of using a var 2014-09-03 17:59:28 -03:00
media-entity.c [media] media: Fix a compiler warning in media_entity_pipeline_start() 2014-11-03 19:09:13 -02:00