Re: [PATCH] media: budget-core: Improve exception handling in budget_register()
From: Markus Elfring
Date: Wed Jun 03 2020 - 14:24:34 EST
> Add the missed undo functions for error handling to fix it.
â
> +++ b/drivers/media/pci/ttpci/budget-core.c
> @@ -369,20 +369,25 @@ static int budget_register(struct budget *budget)
â
> return 0;
> +
+err:
> + dvb_dmxdev_release(&budget->dmxdev);
> + dvb_dmx_release(&budget->demux);
> + return ret;
> }
â
Perhaps use the label ârelease_dmxdevâ instead?
Regards,
Markus