]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
media: Properly pass through media entity types in entity enumeration
authorSakari Ailus <sakari.ailus@linux.intel.com>
Mon, 2 Jan 2017 10:32:47 +0000 (08:32 -0200)
committerTim Gardner <tim.gardner@canonical.com>
Mon, 13 Mar 2017 21:20:54 +0000 (15:20 -0600)
commit221ee1663824ccc16018b825abb814b1d64a9437
treec6c901d4cf532a806a93f711bbe88903b113275c
parent4c786419dfaa79ebeee29cdd6dd6295c5e2dfeed
media: Properly pass through media entity types in entity enumeration

BugLink: http://bugs.launchpad.net/bugs/1672544
commit 98d85f3cb912fde14593ead54dea4c1a00b3966f upstream.

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 b2cd27448b33 ("[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>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Tim Gardner <tim.gardner@canonical.com>
drivers/media/media-device.c