WSL2-Linux-Kernel/drivers/media
Hans Verkuil 1e77cab218 ivtv: fix incorrect device_caps for ivtvfb
[ Upstream commit 25e9413921 ]

The VIDIOC_G_FBUF and related overlay ioctls no longer worked (-ENOTTY was
returned).

The root cause was the introduction of the caps field in ivtv-driver.h.
While loading the ivtvfb module would update the video_device device_caps
field with V4L2_CAP_VIDEO_OUTPUT_OVERLAY it would not update that caps
field, and that's what the overlay ioctls would look at.

It's a bad idea to keep information in two places, so drop the caps field
and only use vdev.device_caps.

Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Reported-by: Martin Dauskardt <martin.dauskardt@gmx.de>
Fixes: 2161536516 (media: media/pci: set device_caps in struct video_device)
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-04-08 14:23:21 +02:00
..
cec media: cec-pin: fix interrupt en/disable handling 2022-01-27 11:02:56 +01:00
common media: saa7146: hexium_gemini: Fix a NULL pointer dereference in hexium_attach() 2022-01-27 11:04:42 +01:00
dvb-core media: dmxdev: fix UAF when dvb_register_device() fails 2022-01-27 11:03:14 +01:00
dvb-frontends media: dib8000: Fix a memleak in dib8000_init() 2022-01-27 11:03:29 +01:00
firewire media: firewire: firedtv-avc: fix a buffer overflow in avc_ca_pmt() 2021-11-06 14:13:30 +01:00
i2c media: ov5640: Fix set format, v4l2_mbus_pixelcode not updated 2022-04-08 14:23:18 +02:00
mc media: mc-device.c: use DEVICE_ATTR_RO() helper macro 2021-08-04 14:43:50 +02:00
mmc media updates for v5.8-rc1 2020-06-03 20:59:38 -07:00
pci ivtv: fix incorrect device_caps for ivtvfb 2022-04-08 14:23:21 +02:00
platform media: ti-vpe: cal: Fix a NULL pointer dereference in cal_ctx_v4l2_init_formats() 2022-04-08 14:23:16 +02:00
radio media: si470x-i2c: fix possible memory leak in si470x_i2c_probe() 2022-01-27 11:03:20 +01:00
rc media: gpio-ir-tx: fix transmit with long spaces on Orange Pi PC 2022-04-08 14:23:02 +02:00
spi media: cxd2880-spi: Fix a null pointer dereference on error handling path 2021-11-18 19:16:27 +01:00
test-drivers media: vidtv: Check for null return of vzalloc 2022-04-08 14:23:20 +02:00
tuners media: msi001: fix possible null-ptr-deref in msi001_probe() 2022-01-27 11:03:36 +01:00
usb media: stk1160: If start stream fails, return buffers with VB2_BUF_STATE_QUEUED 2022-04-08 14:23:20 +02:00
v4l2-core media: v4l2-core: Initialize h264 scaling matrix 2022-04-08 14:23:18 +02:00
Kconfig media: correct MEDIA_TEST_SUPPORT help text 2022-01-27 11:05:20 +01:00
Makefile media: media/test_drivers: rename to test-drivers 2020-04-16 10:38:31 +02:00