Skip to content
Commit 6cb164f5 authored by Vincent Stehlé's avatar Vincent Stehlé Committed by Mauro Carvalho Chehab
Browse files

[media] vb2: Fix allocation size of dma_parms

When allocating memory to hold the device dma parameters in
vb2_dma_contig_set_max_seg_size(), the requested size is by mistake only
the size of a pointer. Request the correct size instead.

Fixes: 3f033969

 ("media: vb2-dma-contig: add helper for setting dma max seg size")

Signed-off-by: default avatarVincent Stehlé <vincent.stehle@laposte.net>
Cc: Sylwester Nawrocki <s.nawrocki@samsung.com>
Acked-by: default avatarMarek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: default avatarHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
parent 9f8b3333
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment