From: Philipp Zabel
Date: Thu, 19 Sep 2013 07:37:29 +0000 (-0300)
Subject: [media] videobuf2-core: call __setup_offsets only for mmap memory type
X-Git-Tag: v3.13-rc1~47^2~57
X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=dc77523c5da5513df1bbc74db2a522a94f4cec0e;p=pandora-kernel.git
[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-diff-tree failed