]> git.baikalelectronics.ru Git - 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)
commit90ff0dde8902039a20f0b0b221471df5ea6d1108
tree5ec2491637204ad4f50ce114a7b8ad56bde56ebf
parent5df239506c651d04f356e851e7477420aa2fbf0d
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