aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/media/video/cx88/cx88-video.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/media/video/cx88/cx88-video.c b/drivers/media/video/cx88/cx88-video.c
index b993d42fe73c..d6d6d13a6a6b 100644
--- a/drivers/media/video/cx88/cx88-video.c
+++ b/drivers/media/video/cx88/cx88-video.c
@@ -926,8 +926,10 @@ static int video_release(struct file *file)
926 file->private_data = NULL; 926 file->private_data = NULL;
927 kfree(fh); 927 kfree(fh);
928 928
929 mutex_lock(&dev->core->lock);
929 if(atomic_dec_and_test(&dev->core->users)) 930 if(atomic_dec_and_test(&dev->core->users))
930 call_all(dev->core, tuner, s_standby); 931 call_all(dev->core, tuner, s_standby);
932 mutex_unlock(&dev->core->lock);
931 933
932 return 0; 934 return 0;
933} 935}