summaryrefslogtreecommitdiff
path: root/drivers/misc/fsa9480.c
diff options
context:
space:
mode:
authorMarek Szyprowski <m.szyprowski@samsung.com>2012-06-12 17:18:16 +0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2012-11-25 23:21:32 +0400
commitd81e870d5afa1b0a95ea94c4052d3c7e973fae8c (patch)
treefbf9102a76c986ca9b6527570d160c905e3f9e7c /drivers/misc/fsa9480.c
parent67a5d0cebf30020bdc4846892adf360c57610268 (diff)
downloadlinux-d81e870d5afa1b0a95ea94c4052d3c7e973fae8c.tar.xz
[media] v4l: vb2-dma-contig: fail if user ptr buffer is not correctly aligned
The DMA transfer must be aligned to a specific value. If userptr is not aligned to DMA requirements then unexpected corruptions of the memory may occur before or after a buffer. To prevent such situations, all unligned userptr buffers are rejected at VIDIOC_QBUF. Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com> Acked-by: Hans Verkuil <hans.verkuil@cisco.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/misc/fsa9480.c')
0 files changed, 0 insertions, 0 deletions