]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
media: ti-vpe: vpe: Fix Motion Vector vpdma stride
authorBenoit Parrot <bparrot@ti.com>
Mon, 7 Oct 2019 15:09:50 +0000 (12:09 -0300)
committerKhalid Elmously <khalid.elmously@canonical.com>
Wed, 29 Jan 2020 04:45:21 +0000 (23:45 -0500)
commitdfeb54723ca7365d8edb2f1dd228b15eddb4b4c9
treeaad78a57d40a571db55c2050c32cd04adc09b0a0
parent17ccf8c810808ca8dbbfe1e9e64723e5bbc993f6
media: ti-vpe: vpe: Fix Motion Vector vpdma stride

BugLink: https://bugs.launchpad.net/bugs/1859712
[ Upstream commit 102af9b9922f658f705a4b0deaccabac409131bf ]

commit 3dc2046ca78b ("[media] media: ti-vpe: vpe: allow use of user
specified stride") and commit da4414eaed15 ("[media] media: ti-vpe: vpdma:
add support for user specified stride") resulted in the Motion Vector
stride to be the same as the image stride.

This caused memory corruption in the output image as mentioned in
commit 00db969964c8 ("[media] media: ti-vpe: vpe: Fix line stride
for output motion vector").

Fixes: 3dc2046ca78b ("[media] media: ti-vpe: vpe: allow use of user specified stride")
Fixes: da4414eaed15 ("[media] media: ti-vpe: vpdma: add support for user specified stride")
Signed-off-by: Benoit Parrot <bparrot@ti.com>
Acked-by: Nikhil Devshatwar <nikhil.nd@ti.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/media/platform/ti-vpe/vpe.c