From: Al Viro Date: Mon, 15 Apr 2013 17:56:11 +0000 (-0400) Subject: dvb_net: don't mess with ->f_op in ->release() X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=7caf2184f264f70f76d88444e4199945041a2aca;p=openwrt%2Fstaging%2Fblogic.git dvb_net: don't mess with ->f_op in ->release() Signed-off-by: Al Viro --- 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; }