diff options
author | Dan Carpenter <error27@gmail.com> | 2010-05-04 11:36:34 (GMT) |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-05-19 15:59:04 (GMT) |
commit | 9723dbb034e45775037c5dd098652e1628a1c9ef (patch) | |
tree | 0f3807a406bb996a44601f18e473038aed279c8a /drivers/media/IR | |
parent | 5f6e3c8e34bc02800b499e09828ac1061e004977 (diff) | |
download | linux-fsl-qoriq-9723dbb034e45775037c5dd098652e1628a1c9ef.tar.xz |
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 d5d8d93..ca2b490 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; |