diff options
Diffstat (limited to 'drivers/media/dvb/dvb-core')
-rw-r--r-- | drivers/media/dvb/dvb-core/dmxdev.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/dvb/dvb-core/dmxdev.c b/drivers/media/dvb/dvb-core/dmxdev.c index 425862ffb285..0042306ea11b 100644 --- a/drivers/media/dvb/dvb-core/dmxdev.c +++ b/drivers/media/dvb/dvb-core/dmxdev.c | |||
@@ -207,7 +207,7 @@ static int dvb_dvr_release(struct inode *inode, struct file *file) | |||
207 | } | 207 | } |
208 | /* TODO */ | 208 | /* TODO */ |
209 | dvbdev->users--; | 209 | dvbdev->users--; |
210 | if(dvbdev->users==-1 && dmxdev->exit==1) { | 210 | if (dvbdev->users == 1 && dmxdev->exit == 1) { |
211 | fops_put(file->f_op); | 211 | fops_put(file->f_op); |
212 | file->f_op = NULL; | 212 | file->f_op = NULL; |
213 | mutex_unlock(&dmxdev->mutex); | 213 | mutex_unlock(&dmxdev->mutex); |