media: mtk-vcodec: add missing put_device() call in mtk_vcodec_init_dec_pm()
authorYu Kuai <yukuai3@huawei.com>
Fri, 9 Oct 2020 12:38:01 +0000 (14:38 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 30 Dec 2020 10:53:11 +0000 (11:53 +0100)
commitd9292412258bf3a8d7dd93d075a6fdd670cb8901
treeace5382e3e09ac989fbaa3e7b1b7ad33debb8268
parentc7ffc289daa3fb264e271b3a5b4f533a61f91e9c
media: mtk-vcodec: add missing put_device() call in mtk_vcodec_init_dec_pm()

[ Upstream commit 5d4fa2c50125c9cda9e380d89268757cc5fa743d ]

if of_find_device_by_node() succeed, mtk_vcodec_init_dec_pm() doesn't have
a corresponding put_device(). Thus add jump target to fix the exception
handling for this function implementation.

Fixes: 590577a4e525 ("[media] vcodec: mediatek: Add Mediatek V4L2 Video Decoder Driver")
Signed-off-by: Yu Kuai <yukuai3@huawei.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-vcodec/mtk_vcodec_dec_pm.c