#include <media/v4l2-device.h>
#include <media/videobuf2-v4l2.h>
+#include <asm/barrier.h>
+
#include <trace/events/v4l2.h>
/* Zero out the end of the struct pointed to by p. Everything after, but
{
if (_IOC_NR(cmd) >= V4L2_IOCTLS)
return false;
+ speculation_barrier();
return v4l2_ioctls[_IOC_NR(cmd)].ioctl == cmd;
}
return vdev->lock;
if (test_bit(_IOC_NR(cmd), vdev->disable_locking))
return NULL;
+ speculation_barrier();
if (vdev->queue && vdev->queue->lock &&
(v4l2_ioctls[_IOC_NR(cmd)].flags & INFO_FL_QUEUE))
return vdev->queue->lock;