diff options
author | Dan Carpenter <error27@gmail.com> | 2010-05-04 07:36:34 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-05-19 11:59:04 -0400 |
commit | 9723dbb034e45775037c5dd098652e1628a1c9ef (patch) | |
tree | 0f3807a406bb996a44601f18e473038aed279c8a /drivers/media/IR | |
parent | 5f6e3c8e34bc02800b499e09828ac1061e004977 (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.c | 1 |
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 | ||
1777 | touch_register_failed: | 1777 | touch_register_failed: |
1778 | input_free_device(ictx->touch); | 1778 | input_free_device(ictx->touch); |
1779 | mutex_unlock(&ictx->lock); | ||
1780 | 1779 | ||
1781 | touch_alloc_failed: | 1780 | touch_alloc_failed: |
1782 | return NULL; | 1781 | return NULL; |