Gitweb:     
http://git.kernel.org/git/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=82e67246cd2a860637ee9d27776ad48d32734f6c
Commit:     82e67246cd2a860637ee9d27776ad48d32734f6c
Parent:     89d969a39da8e9ee5db1c1fb49f55f4206a445ac
Author:     Trent Piepho <[EMAIL PROTECTED]>
AuthorDate: Fri Aug 17 17:49:41 2007 -0300
Committer:  Mauro Carvalho Chehab <[EMAIL PROTECTED]>
CommitDate: Tue Oct 9 22:05:21 2007 -0300

    V4L/DVB (6031): Fix for bug 7819: fixed hotplugging for dvbnet
    
    The first part of dvb_net_close() is just a cut&paste from
    dvb_generic_release(), so maybe it would be better to just call
    dvb_generic_release() instead?
    
    Signed-off-by: Trent Piepho <[EMAIL PROTECTED]>
    Acked-by: Markus Rechberger <[EMAIL PROTECTED]>
    Acked-by: Oliver Endriss <[EMAIL PROTECTED]>
    Signed-off-by: Mauro Carvalho Chehab <[EMAIL PROTECTED]>
---
 drivers/media/dvb/dvb-core/dvb_net.c |   13 ++-----------
 1 files changed, 2 insertions(+), 11 deletions(-)

diff --git a/drivers/media/dvb/dvb-core/dvb_net.c 
b/drivers/media/dvb/dvb-core/dvb_net.c
index b9c78d0..13e2998 100644
--- a/drivers/media/dvb/dvb-core/dvb_net.c
+++ b/drivers/media/dvb/dvb-core/dvb_net.c
@@ -1441,18 +1441,9 @@ static int dvb_net_close(struct inode *inode, struct 
file *file)
        struct dvb_device *dvbdev = file->private_data;
        struct dvb_net *dvbnet = dvbdev->priv;
 
-       if (!dvbdev)
-               return -ENODEV;
+       dvb_generic_release(inode, file);
 
-       if ((file->f_flags & O_ACCMODE) == O_RDONLY) {
-               dvbdev->readers++;
-       } else {
-               dvbdev->writers++;
-       }
-
-       dvbdev->users++;
-
-       if(dvbdev->users == 1 && dvbnet->exit==1) {
+       if(dvbdev->users == 1 && dvbnet->exit == 1) {
                fops_put(file->f_op);
                file->f_op = NULL;
                wake_up(&dvbdev->wait_queue);
-
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to