media: coda: fix CODA960 JPEG encoder buffer overflow
stable inclusion from stable-v5.10.94 commit 89f518b153d196d28788272e56d88db2a8e1a683 bugzilla: https://gitee.com/openeuler/kernel/issues/I531X9 Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=89f518b153d196d28788272e56d88db2a8e1a683 -------------------------------- [ Upstream commit 1a59cd88 ] Stop the CODA960 JPEG encoder from overflowing capture buffers. The bitstream buffer overflow interrupt doesn't seem to be connected, so this has to be handled via timeout instead. Reported-by: NMartin Weber <martin.weber@br-automation.com> Fixes: 96f6f62c ("media: coda: jpeg: add CODA960 JPEG encoder support") Tested-by: NMartin Weber <martin.weber@br-automation.com> Signed-off-by: NPhilipp Zabel <p.zabel@pengutronix.de> Signed-off-by: NHans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: NMauro Carvalho Chehab <mchehab+huawei@kernel.org> Signed-off-by: NSasha Levin <sashal@kernel.org> Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com> Acked-by: NXie XiuQi <xiexiuqi@huawei.com>
Showing
想要评论请 注册 或 登录