diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-05-18 02:58:47 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-05-18 02:58:47 -0300 |
commit | 6d83195593e60b67de6cfd569b5138e70af93408 (patch) | |
tree | 45c85ed46fa6088d4f5c0d93249b1504237c57c2 /linux/drivers/media/video/cx88/cx88-video.c | |
parent | d0db8610838988ce38aff9812c90d8623097e0f5 (diff) | |
parent | a3f229ca91e3b8f799c2799ab2cf3398fff6bcaf (diff) | |
download | mediapointer-dvb-s2-6d83195593e60b67de6cfd569b5138e70af93408.tar.gz mediapointer-dvb-s2-6d83195593e60b67de6cfd569b5138e70af93408.tar.bz2 |
merge: http://kernellabs.com/hg/~dheitmueller/au0828-oldkernel-compilefix
From: Mauro Carvalho Chehab <mchehab@redhat.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'linux/drivers/media/video/cx88/cx88-video.c')
-rw-r--r-- | linux/drivers/media/video/cx88/cx88-video.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/linux/drivers/media/video/cx88/cx88-video.c b/linux/drivers/media/video/cx88/cx88-video.c index 88a326f61..2dfa4c9c3 100644 --- a/linux/drivers/media/video/cx88/cx88-video.c +++ b/linux/drivers/media/video/cx88/cx88-video.c @@ -1152,8 +1152,10 @@ static int video_release(struct file *file) file->private_data = NULL; kfree(fh); + mutex_lock(&dev->core->lock); if(atomic_dec_and_test(&dev->core->users)) call_all(dev->core, tuner, s_standby); + mutex_unlock(&dev->core->lock); return 0; } |