summaryrefslogtreecommitdiffstats
path: root/drivers/media
diff options
context:
space:
mode:
authorDan Carpenter <error27@gmail.com>2010-05-04 13:36:34 +0200
committerMauro Carvalho Chehab <mchehab@redhat.com>2010-05-19 17:59:04 +0200
commit9723dbb034e45775037c5dd098652e1628a1c9ef (patch)
tree0f3807a406bb996a44601f18e473038aed279c8a /drivers/media
parentV4L/DVB: media/IR/imon: testing the wrong variable (diff)
downloadlinux-9723dbb034e45775037c5dd098652e1628a1c9ef.tar.xz
linux-9723dbb034e45775037c5dd098652e1628a1c9ef.zip
V4L/DVB: media/IR/imon: potential double unlock on error
If there is an error here we should unlock in the caller (which is imon_init_intf1()). We can remove this stray unlock. Signed-off-by: Dan Carpenter <error27@gmail.com> Acked-by: Jarod Wilson <jarod@redhat.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media')
-rw-r--r--drivers/media/IR/imon.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/media/IR/imon.c b/drivers/media/IR/imon.c
index d5d8d9331870..ca2b49084d72 100644
--- a/drivers/media/IR/imon.c
+++ b/drivers/media/IR/imon.c
@@ -1776,7 +1776,6 @@ static struct input_dev *imon_init_touch(struct imon_context *ictx)
touch_register_failed:
input_free_device(ictx->touch);
- mutex_unlock(&ictx->lock);
touch_alloc_failed:
return NULL;