From: Hans Verkuil Date: Fri, 21 Nov 2014 10:57:12 +0000 (-0300) Subject: [media] bttv/cx25821/cx88/ivtv: use sg_next instead of sg++ X-Git-Tag: omap-for-v3.19/fixes-rc1~133^2~112 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=872dfcfe82438f5211f5fa1dc6406d033a8a2448;p=pandora-kernel.git [media] bttv/cx25821/cx88/ivtv: use sg_next instead of sg++ Never use sg++, always use sg = sg_next(sg). Scatterlist entries can be combined if the memory is contiguous but sg++ won't know about that. As far as I can tell cx88 and ivtv are really broken because of this, and bttv and cx25821 are OK because vb1 doesn't combine scatterlist entries. But regardless, sg++ should never be used, only sg_next is safe. Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed