diff options
| author | Hans Verkuil <hverkuil@xs4all.nl> | 2009-01-18 19:08:33 +0100 |
|---|---|---|
| committer | Hans Verkuil <hverkuil@xs4all.nl> | 2009-01-18 19:08:33 +0100 |
| commit | 7c6a0c6b35da3f6169ab48001e8ffb9c37720879 (patch) | |
| tree | 08d4de70cbd1349d078bc55bdb97c6e3b00849ca /linux/drivers/media/common | |
| parent | 8488726038ad8c333e24f035a913f02bc6f3142d (diff) | |
| download | mediapointer-dvb-s2-7c6a0c6b35da3f6169ab48001e8ffb9c37720879.tar.gz mediapointer-dvb-s2-7c6a0c6b35da3f6169ab48001e8ffb9c37720879.tar.bz2 | |
saa7146: fix unbalanced mutex_lock/unlock
From: Hans Verkuil <hverkuil@xs4all.nl>
The default case of the switch didn't unlock the mutex.
Priority: normal
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Diffstat (limited to 'linux/drivers/media/common')
| -rw-r--r-- | linux/drivers/media/common/saa7146_video.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/linux/drivers/media/common/saa7146_video.c b/linux/drivers/media/common/saa7146_video.c index 416a37f1b..d4fa36df1 100644 --- a/linux/drivers/media/common/saa7146_video.c +++ b/linux/drivers/media/common/saa7146_video.c @@ -577,6 +577,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; } } |
