]> www.infradead.org Git - users/jedix/linux-maple.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)
committerHans Verkuil <hverkuil@xs4all.nl>
Wed, 5 Mar 2025 16:40:18 +0000 (17:40 +0100)
commit7d0d0b2342bebc47a46499cdf21257ed1e58c4aa
tree160be5fefb435aba3280990293291b35492b1955
parent972df327d89c5298a1bb0cd923e422c389a3c0ab
media: s5p-mfc: Corrected NV12M/NV21M plane-sizes

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>
drivers/media/platform/samsung/s5p-mfc/s5p_mfc_opr_v6.c