]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
media: s5p-mfc: Corrected NV12M/NV21M plane-sizes
authorAakarsh Jain <aakarsh.jain@samsung.com>
Wed, 26 Feb 2025 10:22:51 +0000 (15:52 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 20 Apr 2025 08:15:15 +0000 (10:15 +0200)
commit6d32a30fa1b5795053676de566f11568e8c1467c
tree8b0823132fb63d72e9da11b19cd656c70365dc58
parent3c057a49045ffcb0a03242192b90e2eb7610fb45
media: s5p-mfc: Corrected NV12M/NV21M plane-sizes

[ Upstream commit 7d0d0b2342bebc47a46499cdf21257ed1e58c4aa ]

There is a possibility of getting page fault if the overall
buffer size is not aligned to 256bytes. Since MFC does read
operation only and it won't corrupt the data values even if
it reads the extra bytes.
Corrected luma and chroma plane sizes for V4L2_PIX_FMT_NV12M
and V4L2_PIX_FMT_NV21M pixel format.

Suggested-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Aakarsh Jain <aakarsh.jain@samsung.com>
Reviewed-by: Nicolas Dufresne <nicolas.dufresne@collabora.com>
Acked-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/media/platform/samsung/s5p-mfc/s5p_mfc_opr_v6.c