From: Hans Verkuil Date: Fri, 25 Jul 2014 09:08:36 +0000 (-0300) Subject: [media] vb2: fix multiplanar read() with non-zero data_offset X-Git-Tag: fixes-against-v3.18-rc2~130^2^2~364 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=529a53c6087b3e8648185dfa4491043ec43554d6;p=pandora-kernel.git [media] vb2: fix multiplanar read() with non-zero data_offset If this is a multiplanar buf_type and the plane we want to read has a non-zero data_offset, then that data_offset was not taken into account. Note that read() or write() for formats with more than one plane is currently not allowed, hence the use of 'planes[0]' since this is only relevant for a single-plane format. Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed