linux-sg2042/drivers/media
Sakari Ailus 98d85f3cb9 [media] media: Properly pass through media entity types in entity enumeration
When the functions replaced media entity types, the range which was
allowed for the types was incorrect. This meant that media entity types
for specific devices were not passed correctly to the userspace through
MEDIA_IOC_ENUM_ENTITIES. Fix it.

Fixes: commit b2cd27448b ("[media] media-device: map new functions into old types for legacy API")
Reported-and-tested-by: Antti Laakso <antti.laakso@intel.com>

Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Cc: stable@vger.kernel.org # For v4.5 and up
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
2017-01-27 11:20:33 -02:00
..
cec [media] cec: fix race between configuring and unconfiguring 2016-12-21 07:03:27 -02:00
common [media] v4l2-tpg: Init hv_enc field with a valid value 2016-11-29 12:12:13 -02:00
dvb-core Linux 4.10-rc1 2016-12-26 14:11:35 -02:00
dvb-frontends [media] mn88473: add DVB-T2 PLP support 2016-12-27 14:00:15 -02:00
firewire [media] firewire: don't break long lines 2016-10-21 10:06:00 -02:00
i2c Linux 4.10-rc1 2016-12-26 14:11:35 -02:00
mmc [media] siano: register media controller earlier 2015-02-26 09:10:39 -03:00
pci Linux 4.10-rc1 2016-12-26 14:11:35 -02:00
platform Replace <asm/uaccess.h> with <linux/uaccess.h> globally 2016-12-24 11:46:01 -08:00
radio [media] wl128x: use KERNEL_CONT where needed 2016-11-18 09:37:24 -02:00
rc ktime: Get rid of the union 2016-12-25 17:21:22 +01:00
spi [media] gs1662: drop kfree for memory allocated with devm_kzalloc 2016-10-24 17:59:08 -02:00
tuners Merge branch 'patchwork' into v4l_for_linus 2016-12-15 08:38:35 -02:00
usb Linux 4.10-rc1 2016-12-26 14:11:35 -02:00
v4l2-core Replace <asm/uaccess.h> with <linux/uaccess.h> globally 2016-12-24 11:46:01 -08:00
Kconfig [media] Kconfig: fix breakages when DVB_CORE is not selected 2016-11-18 17:59:17 -02:00
Makefile [media] cec: move the CEC framework out of staging and to media 2016-11-16 15:40:20 -02:00
cec-edid.c [media] cec-edid: check for IEEE identifier 2016-08-22 14:04:51 -03:00
media-device.c [media] media: Properly pass through media entity types in entity enumeration 2017-01-27 11:20:33 -02:00
media-devnode.c [media] media: fix media devnode ioctl/syscall and unregister race 2016-06-15 17:59:28 -03:00
media-entity.c [media] media-entity: clear media_gobj.mdev in _destroy() 2016-11-18 15:19:16 -02:00