]> git.baikalelectronics.ru Git - kernel.git/commit
[media] 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)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Fri, 27 Jan 2017 13:20:33 +0000 (11:20 -0200)
commit25c2a96bbd055741b066505e6b1cc6ee38375c25
treeda286b825585810d7a510d4637d1a9276f72cea5
parent3985733f20f60efac558799c6f18b78011ed2abd
[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 ef59a585369e ("[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>
drivers/media/media-device.c