media: vpss: clean up resources in init
authorEvgeny Novikov <novikov@ispras.ru>
Fri, 10 Jul 2020 09:02:23 +0000 (11:02 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Sun, 19 Jul 2020 11:38:08 +0000 (13:38 +0200)
commit9c487b0b0ea7ff22127fe99a7f67657d8730ff94
treef0be50cab3ea12abf2326ecafba905516d4492bc
parentd70cca7323442026e20c474314518c446cb4766f
media: vpss: clean up resources in init

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>
drivers/media/platform/davinci/vpss.c