]> git.baikalelectronics.ru Git - kernel.git/commit
drm/exynos: mixer: avoid Oops in vp_video_buffer()
authorTobias Jakobi <tjakobi@math.uni-bielefeld.de>
Fri, 2 Feb 2018 15:11:23 +0000 (16:11 +0100)
committerInki Dae <inki.dae@samsung.com>
Fri, 4 May 2018 00:39:59 +0000 (09:39 +0900)
commit54e7ba06c6a758a4858f15ff880baec81df4d04b
tree275c1b06f66f3cf92453c70dd25e089689369301
parent7f9f101a6a1b408912d8cfe54cdd7e7286bdde86
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 <tjakobi@math.uni-bielefeld.de>
[ a.hajda: Halved also destination height and vpos, updated commit message ]
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
drivers/gpu/drm/exynos/exynos_mixer.c