]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitbdcc3e915ef122a3af6e3a39f783b77b0f47e907
treef0be50cab3ea12abf2326ecafba905516d4492bc
parente625765418ce5dffcca2e1219bcf735ecd84b6e5
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