Commit 9723dbb0 authored by Dan Carpenter's avatar Dan Carpenter Committed by Mauro Carvalho Chehab

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: default avatarDan Carpenter <error27@gmail.com>
Acked-by: default avatarJarod Wilson <jarod@redhat.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 5f6e3c8e
...@@ -1776,7 +1776,6 @@ static struct input_dev *imon_init_touch(struct imon_context *ictx) ...@@ -1776,7 +1776,6 @@ static struct input_dev *imon_init_touch(struct imon_context *ictx)
touch_register_failed: touch_register_failed:
input_free_device(ictx->touch); input_free_device(ictx->touch);
mutex_unlock(&ictx->lock);
touch_alloc_failed: touch_alloc_failed:
return NULL; return NULL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment