]> git.baikalelectronics.ru Git - kernel.git/commit
[media] ddbridge: fix error handling in module_init_ddbridge()
authorAlexey Khoroshilov <khoroshilov@ispras.ru>
Thu, 16 Aug 2012 20:05:38 +0000 (17:05 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 11 Sep 2012 18:29:00 +0000 (15:29 -0300)
commit24108ac722912012a0001dd0e8bc8f891aaac307
tree30e1f24316cf86df11f4d95ceca0f46f29091e73
parentab035392807407482c2a0977ffc9b214683978b8
[media] ddbridge: fix error handling in module_init_ddbridge()

If pci_register_driver() failed, resources allocated in
ddb_class_create() are leaked. The patch fixes it
as well as it replaces -1 with correct error code
in ddb_class_create().

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

Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/pci/ddbridge/ddbridge-core.c