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 <erro...@gmail.com>

diff --git a/drivers/media/IR/imon.c b/drivers/media/IR/imon.c
index b65c31a..d48ad6d 100644
--- a/drivers/media/IR/imon.c
+++ b/drivers/media/IR/imon.c
@@ -1777,7 +1777,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;
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to