From dc77523c5da5513df1bbc74db2a522a94f4cec0e Mon Sep 17 00:00:00 2001
From: Philipp Zabel
Date: Thu, 19 Sep 2013 04:37:29 -0300
Subject: [PATCH] [media] videobuf2-core: call __setup_offsets only for mmap
memory type
__setup_offsets fills the v4l2_planes' mem_offset fields, which is only valid
for V4L2_MEMORY_MMAP type buffers. For V4L2_MEMORY_DMABUF and _USERPTR buffers,
this incorrectly overwrites the fd and userptr fields.
Reported-by: Michael Olbrich
Signed-off-by: Philipp Zabel
Acked-by: Marek Szyprowski
Acked-by: Pawel Osciak
Acked-by: Hans Verkuil
Signed-off-by: Mauro Carvalho Chehab
---
Reading git-format-patch failed