diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2009-01-18 19:08:33 +0100 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-01-29 11:47:01 +0100 |
commit | ba3ed4c57fde2df1a8a5b0c445ae5d685334e5f9 (patch) | |
tree | 2ab6e969c21596c641dd4df9245145615e0edd4d /drivers/media/common/saa7146_video.c | |
parent | V4L/DVB (10265): budget.c driver: Kernel oops: "BUG: unable to handle kernel ... (diff) | |
download | linux-ba3ed4c57fde2df1a8a5b0c445ae5d685334e5f9.tar.xz linux-ba3ed4c57fde2df1a8a5b0c445ae5d685334e5f9.zip |
V4L/DVB (10270): saa7146: fix unbalanced mutex_lock/unlock
The default case of the switch didn't unlock the mutex.
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/common/saa7146_video.c')
-rw-r--r-- | drivers/media/common/saa7146_video.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/media/common/saa7146_video.c b/drivers/media/common/saa7146_video.c index 6098b626811f..47fee05eaefb 100644 --- a/drivers/media/common/saa7146_video.c +++ b/drivers/media/common/saa7146_video.c @@ -576,6 +576,7 @@ static int set_control(struct saa7146_fh *fh, struct v4l2_control *c) vv->vflip = c->value; break; default: { + mutex_unlock(&dev->lock); return -EINVAL; } } |