Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 65746
b: refs/heads/master
c: 82e6724
h: refs/heads/master
v: v3
  • Loading branch information
Trent Piepho authored and Mauro Carvalho Chehab committed Oct 10, 2007
1 parent bee93be commit c2745f9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 12 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 89d969a39da8e9ee5db1c1fb49f55f4206a445ac
refs/heads/master: 82e67246cd2a860637ee9d27776ad48d32734f6c
13 changes: 2 additions & 11 deletions trunk/drivers/media/dvb/dvb-core/dvb_net.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit c2745f9

Please sign in to comment.