2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2025-01-06 12:44:14 +08:00
linux-next/drivers/media
Satendra Singh Thakur ce4686702f media: vb2: Fix a bug about unnecessary calls to queue cancel and free
Currently, there's a logic with checks if *count is non-zero,
q->num_buffers is zero and q->memory is different than memory.

That's flawed when the device is initialized, or after the
queues are freed, as it does, unnecessary calls to
__vb2_queue_cancel() and  __vb2_queue_free().

That can be avoided by making sure that q->memory is set to
VB2_MEMORY_UNKNOWN at vb2_core_queue_init(), and adding such
check at the loop.

[mchehab@s-opensource.com: fix checkpatch issues and improve the
 patch, by setting q->memory to zero at vb2_core_queue_init]

Signed-off-by: Satendra Singh Thakur <satendra.t@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
2018-01-03 05:29:42 -05:00
..
cec media: cec: move cec autorepeat handling to rc-core 2017-12-14 10:35:30 -05:00
common media: vb2: Fix a bug about unnecessary calls to queue cancel and free 2018-01-03 05:29:42 -05:00
dvb-core media: dvb_vb2: use strlcpy instead of strncpy 2017-12-29 07:53:30 -05:00
dvb-frontends media: dvb-frontends/stv0910: cleanup init_search_param() and enable PLS 2018-01-03 04:48:50 -05:00
firewire media: move dvb kAPI headers to include/media 2017-12-28 13:16:01 -05:00
i2c media: i2c: as3645a: Remove driver 2017-12-29 06:31:31 -05:00
mmc media: move dvb kAPI headers to include/media 2017-12-28 13:16:01 -05:00
pci media: intel-ipu3: cio2: add new MIPI-CSI2 driver 2017-12-29 07:00:51 -05:00
platform media: v4l2-async: simplify v4l2_async_subdev structure 2017-12-29 07:14:28 -05:00
radio media: radio-si476x: fix behavior when seek->range* are defined 2017-12-11 13:04:51 -05:00
rc media: ir-spi: add SPDX identifier 2017-12-18 15:22:50 -05:00
spi [media] gs1662: drop kfree for memory allocated with devm_kzalloc 2016-10-24 17:59:08 -02:00
tuners media: move dvb kAPI headers to include/media 2017-12-28 13:16:01 -05:00
usb media: pvrusb2: drop unneeded newline 2018-01-03 04:49:40 -05:00
v4l2-core media: v4l2-async: simplify v4l2_async_subdev structure 2017-12-29 07:14:28 -05:00
Kconfig media: dvb-core: make DVB mmap API optional 2017-12-28 11:17:29 -05:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
media-device.c media: drop use of MEDIA_API_VERSION 2017-08-08 06:03:15 -04:00
media-devnode.c media: utilize new cdev_device_add helper function 2017-03-21 06:44:33 +01:00
media-entity.c [media] media: Check for active and has_no_links overrun 2017-10-04 17:16:14 -03:00