[media] lirc_imon: do not leave imon_probe() with mutex held
authorAlexey Khoroshilov <khoroshilov@ispras.ru>
Sat, 14 Nov 2015 18:17:56 +0000 (16:17 -0200)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Thu, 19 Nov 2015 13:29:28 +0000 (11:29 -0200)
commitb833d0df943d70682e288c38c96b8e7bfff4023a
treef4cc4669395b25a7c2117d6be83a9b132dcd9bf5
parent18349f4009b149f0d4feca9e65125772d7a22dd0
[media] lirc_imon: do not leave imon_probe() with mutex held

Commit af8a819a2513 ("[media] lirc_imon: simplify error handling code")
lost mutex_unlock(&context->ctx_lock), so imon_probe() exits with
the context->ctx_lock mutex acquired.

The patch adds mutex_unlock(&context->ctx_lock) back.

Found by Linux Driver Verification project (linuxtesting.org).

Fixes: af8a819a2513 ("[media] lirc_imon: simplify error handling code")

Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/staging/media/lirc/lirc_imon.c