#include <media/videobuf2-v4l2.h>
#include "videobuf2-internal.h"
+#include <asm/barrier.h>
/* Flags that are set by the vb2 core */
#define V4L2_BUFFER_MASK_FLAGS (V4L2_BUF_FLAG_MAPPED | V4L2_BUF_FLAG_QUEUED | \
return -EINVAL;
}
+ speculation_barrier();
+
if (q->bufs[b->index] == NULL) {
/* Should never happen */
dprintk(1, "%s: buffer is NULL\n", opname);
dprintk(1, "buffer index out of range\n");
return -EINVAL;
}
+
+ speculation_barrier();
+
vb = q->bufs[b->index];
ret = __verify_planes_array(vb, b);