summaryrefslogtreecommitdiff
path: root/linux/drivers/media
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil@xs4all.nl>2009-01-18 19:08:33 +0100
committerHans Verkuil <hverkuil@xs4all.nl>2009-01-18 19:08:33 +0100
commit7c6a0c6b35da3f6169ab48001e8ffb9c37720879 (patch)
tree08d4de70cbd1349d078bc55bdb97c6e3b00849ca /linux/drivers/media
parent8488726038ad8c333e24f035a913f02bc6f3142d (diff)
downloadmediapointer-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')
-rw-r--r--linux/drivers/media/common/saa7146_video.c1
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;
}
}