Re: [PATCH] media: budget-core: Improve exception handling in budget_register()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> 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




[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]

  Powered by Linux