Skip to content

Commit

Permalink
V4L/DVB: media/IR/imon: potential double unlock on error
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Dan Carpenter authored and Mauro Carvalho Chehab committed May 19, 2010
1 parent 5f6e3c8 commit 9723dbb
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/media/IR/imon.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 9723dbb

Please sign in to comment.