V4L/DVB: media/IR/imon: potential double unlock on error
authorDan Carpenter <error27@gmail.com>
Tue, 4 May 2010 11:36:34 +0000 (08:36 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 19 May 2010 15:59:04 +0000 (12:59 -0300)
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>
drivers/media/IR/imon.c

index d5d8d93..ca2b490 100644 (file)
@@ -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;