]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
V4L/DVB (10270): saa7146: fix unbalanced mutex_lock/unlock
authorHans Verkuil <hverkuil@xs4all.nl>
Sun, 18 Jan 2009 18:08:33 +0000 (15:08 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 29 Jan 2009 10:47:01 +0000 (08:47 -0200)
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>
drivers/media/common/saa7146_video.c

index 6098b626811fac4baa0e89f40b0e45e371c9b56f..47fee05eaefbab9a67492f5c97067a5874fa341e 100644 (file)
@@ -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;
        }
        }