From: Hans Verkuil Date: Wed, 4 Dec 2013 14:14:05 +0000 (+0100) Subject: [media] vb2: regression fix: always set length field. X-Git-Tag: v3.13-rc4~25^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a5e3d743cb6ed2d73546eaf070138202c0c64a6f;p=pandora-kernel.git [media] vb2: regression fix: always set length field. Commit dc77523c5da5513df1bbc74db2a522a94f4cec0e ensured that m.offset is only set for the MMAP memory mode by calling __setup_offsets only for that mode. However, __setup_offsets also initializes the length fields, and that should be done regardless of the memory mode. Because of that change the v4l2-ctl test application fails for the USERPTR mode. This fix creates a __setup_lengths function that sets the length, and __setup_offsets just sets the offset and no longer touches the length. Signed-off-by: Hans Verkuil Acked-by: Marek Szyprowski --- Reading git-diff-tree failed