diff options
author | Hans Verkuil | 2013-12-04 15:14:05 +0100 |
---|---|---|
committer | Mauro Carvalho Chehab | 2013-12-10 05:40:57 -0200 |
commit | a5e3d743cb6ed2d73546eaf070138202c0c64a6f (patch) | |
tree | 1d6618189bd6824d56e8eb8bdd76ff62863511ec /virt/kvm/coalesced_mmio.h | |
parent | 3d8b24d27808e6ab95eae70cb15315051a7f90eb (diff) |
[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 <hans.verkuil@cisco.com>
Acked-by: Marek Szyprowski <m.szyprowski@samsung.com>
Diffstat (limited to 'virt/kvm/coalesced_mmio.h')
0 files changed, 0 insertions, 0 deletions