msm: subsystem_restart: Add mutex_unlock to return path
do_epoch_check needs a mutex_unlock in its return path,
when epoch checking is disabled.
Signed-off-by: Vikram Mulukutla <markivx@codeaurora.org>
diff --git a/arch/arm/mach-msm/subsystem_restart.c b/arch/arm/mach-msm/subsystem_restart.c
index aa0f3cc..4d6f4b1 100644
--- a/arch/arm/mach-msm/subsystem_restart.c
+++ b/arch/arm/mach-msm/subsystem_restart.c
@@ -254,7 +254,7 @@
/* Check if epoch checking is enabled */
if (!max_restarts_check)
- return;
+ goto out;
r_log = kmalloc(sizeof(struct restart_log), GFP_KERNEL);
r_log->subsys = subsys;
@@ -291,6 +291,7 @@
max_history_time_check);
}
+out:
mutex_unlock(&restart_log_mutex);
}