media: media-device: fix ioctl function types
authorSami Tolvanen <samitolvanen@google.com>
Mon, 7 May 2018 18:09:46 +0000 (14:09 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 3 Aug 2018 05:55:22 +0000 (07:55 +0200)
commitf638764e9baa63a652db22e68a426f76ed37c1d1
treefeed9657840025ea627bdd63373cfe5f4595ab41
parentcbc0c24c9c9f51c5b4d429bbd6230a8660628462
media: media-device: fix ioctl function types

[ Upstream commit daa36370b62428cca6d48d1b2530a8419f631c8c ]

This change fixes function types for media device ioctls to avoid
indirect call mismatches with Control-Flow Integrity checking.

Signed-off-by: Sami Tolvanen <samitolvanen@google.com>
Acked-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/media/media-device.c