diff options
author | Dan Carpenter <error27@gmail.com> | 2010-05-04 08:36:34 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-05-19 12:59:04 -0300 |
commit | 9723dbb034e45775037c5dd098652e1628a1c9ef (patch) | |
tree | 0f3807a406bb996a44601f18e473038aed279c8a /drivers/media | |
parent | 5f6e3c8e34bc02800b499e09828ac1061e004977 (diff) | |
download | linux-9723dbb034e45775037c5dd098652e1628a1c9ef.tar.bz2 |
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.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) touch_register_failed: input_free_device(ictx->touch); - mutex_unlock(&ictx->lock); touch_alloc_failed: return NULL; |