media: platform: Improve queue set up flow for bug fixing
authorXia Jiang <xia.jiang@mediatek.com>
Fri, 14 Aug 2020 07:11:35 +0000 (09:11 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 Nov 2020 10:06:54 +0000 (11:06 +0100)
commit2db76a1bd95208c5a36c0cf5874a9c2e1ab035e6
treebea89d5bfc190b3326328487beba6a097506f4c9
parent372865efb5525aab59b7409b11e9d22d4fc0e988
media: platform: Improve queue set up flow for bug fixing

[ Upstream commit 5095a6413a0cf896ab468009b6142cb0fe617e66 ]

Add checking created buffer size follow in mtk_jpeg_queue_setup().

Reviewed-by: Tomasz Figa <tfiga@chromium.org>
Signed-off-by: Xia Jiang <xia.jiang@mediatek.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/media/platform/mtk-jpeg/mtk_jpeg_core.c