media: mtk-mdp: Fix a refcounting bug on error in init
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 22 Jul 2020 12:39:14 +0000 (14:39 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Thu, 6 Aug 2020 09:27:45 +0000 (11:27 +0200)
commitdd4eddc4ba31fbf4554fc5fa12d3a553b50e1469
tree059036e8cdf0aad1d75ee0ae55c6bd067d570226
parent9bde425e70b6d6b49f3206a1d3817bccb92a893d
media: mtk-mdp: Fix a refcounting bug on error in init

We need to call of_node_put(comp->dev_node); on the error paths in this
function.

Fixes: c8eb2d7e8202 ("[media] media: Add Mediatek MDP Driver")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/platform/mtk-mdp/mtk_mdp_comp.c