media: budget-core: Improve exception handling in budget_register()
authorChuhong Yuan <hslester96@gmail.com>
Fri, 5 Jun 2020 16:17:28 +0000 (18:17 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Tue, 23 Jun 2020 13:10:00 +0000 (15:10 +0200)
commitfc0456458df8b3421dba2a5508cd817fbc20ea71
tree2c826e3ba57cfca298f2bb2c25fffb3906740955
parent6499a0db9b0f1e903d52f8244eacc1d4be00eea2
media: budget-core: Improve exception handling in budget_register()

budget_register() has no error handling after its failure.
Add the missed undo functions for error handling to fix it.

Signed-off-by: Chuhong Yuan <hslester96@gmail.com>
Signed-off-by: Sean Young <sean@mess.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/media/pci/ttpci/budget-core.c