summaryrefslogtreecommitdiff
path: root/drivers/media/dvb-core
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2013-04-15 21:56:11 +0400
committerAl Viro <viro@zeniv.linux.org.uk>2013-04-29 23:41:47 +0400
commit7caf2184f264f70f76d88444e4199945041a2aca (patch)
tree29e0f5428fedd202568616ee7f5e8e20c0bc3f61 /drivers/media/dvb-core
parent25643165c3e35cae633afe8926d49c4e558e63d2 (diff)
downloadlinux-7caf2184f264f70f76d88444e4199945041a2aca.tar.xz
dvb_net: don't mess with ->f_op in ->release()
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Diffstat (limited to 'drivers/media/dvb-core')
-rw-r--r--drivers/media/dvb-core/dvb_net.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/media/dvb-core/dvb_net.c b/drivers/media/dvb-core/dvb_net.c
index 44225b186f6d..59ba60659a3e 100644
--- a/drivers/media/dvb-core/dvb_net.c
+++ b/drivers/media/dvb-core/dvb_net.c
@@ -1479,11 +1479,8 @@ static int dvb_net_close(struct inode *inode, struct file *file)
dvb_generic_release(inode, file);
- if(dvbdev->users == 1 && dvbnet->exit == 1) {
- fops_put(file->f_op);
- file->f_op = NULL;
+ if(dvbdev->users == 1 && dvbnet->exit == 1)
wake_up(&dvbdev->wait_queue);
- }
return 0;
}