diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2009-01-18 18:08:33 (GMT) |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-01-29 10:47:01 (GMT) |
commit | ba3ed4c57fde2df1a8a5b0c445ae5d685334e5f9 (patch) | |
tree | 2ab6e969c21596c641dd4df9245145615e0edd4d /drivers/media/common | |
parent | 6dbe7af37def293e1116af186c94e2d47d353190 (diff) | |
download | linux-ba3ed4c57fde2df1a8a5b0c445ae5d685334e5f9.tar.xz |
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')
-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 6098b62..47fee05 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; } } |