media: ddbridge: fix deinit order in case of failure in ddb_init()
authorDaniel Scheller <d.scheller@gmx.net>
Sun, 17 Dec 2017 15:40:47 +0000 (10:40 -0500)
committerMauro Carvalho Chehab <mchehab@s-opensource.com>
Tue, 19 Dec 2017 12:17:28 +0000 (07:17 -0500)
commitb7b9a5a93b7d859dacc3dff312346b4ab23fa60d
tree14b153acda262f84f4f4407f2e0c7830cf46dc0d
parentb5472c12facb001145ade0bd69c80def36331f28
media: ddbridge: fix deinit order in case of failure in ddb_init()

In ddb_init(), the deinitialization sequence isn't correct when handling
errors, and could even lead to a memleak depending on where things failed.
Fix the deinit order.

Signed-off-by: Daniel Scheller <d.scheller@gmx.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
drivers/media/pci/ddbridge/ddbridge-core.c