drm/exynos: mixer: avoid Oops in vp_video_buffer()
authorTobias Jakobi <[email protected]>
Fri, 2 Feb 2018 15:11:23 +0000 (16:11 +0100)
committerInki Dae <[email protected]>
Fri, 4 May 2018 00:39:59 +0000 (09:39 +0900)
commit0ccc1c8f0282e237a0bd6dca7cdac4ed5e318ee7
tree275c1b06f66f3cf92453c70dd25e089689369301
parent2eced8e917b060587fc8ed46df41c364957a5050
drm/exynos: mixer: avoid Oops in vp_video_buffer()

If an interlaced video mode is selected, a IOMMU pagefault is
triggered by vp_video_buffer().

Fix the most apparent bugs:
- pitch value for chroma plane
- divide by two of height and vpos of source and destination

Signed-off-by: Tobias Jakobi <[email protected]>
[ a.hajda: Halved also destination height and vpos, updated commit message ]
Signed-off-by: Andrzej Hajda <[email protected]>
Signed-off-by: Inki Dae <[email protected]>
drivers/gpu/drm/exynos/exynos_mixer.c