]> git.hungrycats.org Git - linux/commit
media: vpss: clean up resources in init
authorEvgeny Novikov <novikov@ispras.ru>
Fri, 10 Jul 2020 09:02:23 +0000 (11:02 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 26 Aug 2020 09:42:10 +0000 (11:42 +0200)
commit5c7fa8658b3d44fd63d930466ef43156071a9dc3
treee10a30e730f952cec463eba38abdd7f81ccaf739
parent042a2d5200645f9c3586a33458e383947c821f41
media: vpss: clean up resources in init

[ Upstream commit 9c487b0b0ea7ff22127fe99a7f67657d8730ff94 ]

If platform_driver_register() fails within vpss_init() resources are not
cleaned up. The patch fixes this issue by introducing the corresponding
error handling.

Found by Linux Driver Verification project (linuxtesting.org).

Signed-off-by: Evgeny Novikov <novikov@ispras.ru>
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/davinci/vpss.c