summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNikhil Devshatwar <nikhil.nd@ti.com>2019-11-12 15:53:33 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-10-01 13:14:30 +0200
commit4f3de4dd102e51461e7e6a03789824b52ff92c8c (patch)
tree33f9f7dc17a6c05c0ddc73081b6bce63b3f78bb5 /include
parent0b4ba98354cc0e8f5a800bc19a1f576e61f49a2a (diff)
media: ti-vpe: cal: Restrict DMA to avoid memory corruption
[ Upstream commit 6e72eab2e7b7a157d554b8f9faed7676047be7c1 ] When setting DMA for video capture from CSI channel, if the DMA size is not given, it ends up writing as much data as sent by the camera. This may lead to overwriting the buffers causing memory corruption. Observed green lines on the default framebuffer. Restrict the DMA to maximum height as specified in the S_FMT ioctl. Signed-off-by: Nikhil Devshatwar <nikhil.nd@ti.com> Signed-off-by: Benoit Parrot <bparrot@ti.com> Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions