media: platform: mtk-mdp3: fix error code in mdp_vpu_dev_init()
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 1 Sep 2022 14:47:48 +0000 (16:47 +0200)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Sat, 24 Sep 2022 06:52:55 +0000 (08:52 +0200)
commitdec7920e55db35ac429b002025aa1fafc0ec7d57
tree52ac0f21ba732a9907f0749b607972602de88f04
parentbf4ed9e3283b3db26089f7c265e65435af4d3e11
media: platform: mtk-mdp3: fix error code in mdp_vpu_dev_init()

Return a negative error code if mdp_vpu_shared_mem_alloc() fails.

Fixes: 61890ccaefaf ("media: platform: mtk-mdp3: add MediaTek MDP3 driver")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Reviewed-by: Matthias Brugger <matthias.bgg@gmail.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/platform/mediatek/mdp3/mtk-mdp3-vpu.c