]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
media: v4l2-ioctl: replace IOCTL_INFO_STD with stub functions
authorSami Tolvanen <samitolvanen@google.com>
Tue, 8 May 2018 17:56:12 +0000 (13:56 -0400)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>
Fri, 11 May 2018 15:26:38 +0000 (11:26 -0400)
commit3ad3b7a2ebaefae37a7eafed0779324987ca5e56
tree5ec2491637204ad4f50ce114a7b8ad56bde56ebf
parentf1d00607afd69354a3cc29ef13e95ccb3fef8a77
media: v4l2-ioctl: replace IOCTL_INFO_STD with stub functions

This change removes IOCTL_INFO_STD and adds stub functions where
needed using the DEFINE_V4L_STUB_FUNC macro. This fixes indirect call
mismatches with Control-Flow Integrity, caused by calling standard
ioctls using a function pointer that doesn't match the function type.

Signed-off-by: Sami Tolvanen <samitolvanen@google.com>
Signed-off-by: Hans Verkuil <hansverk@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
drivers/media/v4l2-core/v4l2-ioctl.c