[linux-dvb] [patch] dvb_net hotplugging support

Markus Rechberger mrechberger at gmail.com
Fri Aug 17 08:29:27 CEST 2007


On 8/17/07, Oliver Endriss <o.endriss at gmx.de> wrote:
> Markus Rechberger wrote:
> > Since this didn't get commented here, Trent did that patch already 2
> > months ago but it's not included yet. So I recommend to include his
> > patch.
> >
> > http://article.gmane.org/gmane.linux.kernel/543689
> >
> > Acked-by: Markus Rechberger <mrechberger at gmail.com>
>
> Are you talking about this tiny patch?
>

yes.

> --- a/linux/drivers/media/dvb/dvb-core/dvb_net.c	Fri Jun 08 08:58:41 2007
> -0300
> +++ b/linux/drivers/media/dvb/dvb-core/dvb_net.c	Fri Jun 15 15:34:08 2007
> -0700
>  <at>  <at>  -1502,18 +1502,9  <at>  <at>  static int dvb_net_close(struct
> inode *i
>  	struct dvb_device *dvbdev = file->private_data;
>  	struct dvb_net *dvbnet = dvbdev->priv;
>
> -	if (!dvbdev)
> -		return -ENODEV;
> -
> -	if ((file->f_flags & O_ACCMODE) == O_RDONLY) {
> -		dvbdev->readers++;
> -	} else {
> -		dvbdev->writers++;
> -	}
> -
> -	dvbdev->users++;
> -
> -	if(dvbdev->users == 1 && dvbnet->exit==1) {
> +	dvb_generic_release(inode, file);
> +
> +	if(dvbdev->users == 1 && dvbnet->exit == 1) {
>  		fops_put(file->f_op);
>  		file->f_op = NULL;
>  		wake_up(&dvbdev->wait_queue);
>
> If yes,
> Acked-by: Oliver Endriss <o.endriss at gmx.de>
>
> Btw, why is this patch important? Basically it doesn't change anything.
>
> CU
> Oliver
>
> --
> ----------------------------------------------------------------
> VDR Remote Plugin 0.3.9: http://www.escape-edv.de/endriss/vdr/
> ----------------------------------------------------------------
>
>
> _______________________________________________
> linux-dvb mailing list
> linux-dvb at linuxtv.org
> http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb
>


-- 
Markus Rechberger



More information about the linux-dvb mailing list