[linux-dvb] [patch] dvb_net hotplugging support

Oliver Endriss o.endriss at gmx.de
Fri Aug 17 06:23:16 CEST 2007


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?

--- 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/
----------------------------------------------------------------




More information about the linux-dvb mailing list