aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/IR
diff options
context:
space:
mode:
authorDan Carpenter <error27@gmail.com>2010-05-04 07:36:34 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2010-05-19 11:59:04 -0400
commit9723dbb034e45775037c5dd098652e1628a1c9ef (patch)
tree0f3807a406bb996a44601f18e473038aed279c8a /drivers/media/IR
parent5f6e3c8e34bc02800b499e09828ac1061e004977 (diff)
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/IR')
-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)
1776 1776
1777touch_register_failed: 1777touch_register_failed:
1778 input_free_device(ictx->touch); 1778 input_free_device(ictx->touch);
1779 mutex_unlock(&ictx->lock);
1780 1779
1781touch_alloc_failed: 1780touch_alloc_failed:
1782 return NULL; 1781 return NULL;