summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvaneesh Kumar Dwivedi <akdwived@codeaurora.org>2016-02-02 19:36:04 +0530
committerDavid Keitel <dkeitel@codeaurora.org>2016-03-23 21:19:56 -0700
commitb853a0682a27987f19106eb5fe011fa1e40cddd8 (patch)
treef4cb670532800f5004052251952e859fbce5d010
parentd2e98e8037da362df56aeb151988765e49cefd93 (diff)
soc: qcom: Avoid double free of inrush current mitigation driver
Adding default case to handle other events which might be triggered from modem and adsp schdule free_resource work item when already it has been freed. Change-Id: Ibe6a8eae31d70e80fada3a1fc18f8f2bee42dbda Signed-off-by: Avaneesh Kumar Dwivedi <akdwived@codeaurora.org>
-rw-r--r--drivers/soc/qcom/inrush-current-mitigation.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/soc/qcom/inrush-current-mitigation.c b/drivers/soc/qcom/inrush-current-mitigation.c
index 9ffa4779a9c6..5f141fc9957f 100644
--- a/drivers/soc/qcom/inrush-current-mitigation.c
+++ b/drivers/soc/qcom/inrush-current-mitigation.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2015, The Linux Foundation. All rights reserved.
+ * Copyright (c) 2015-2016, The Linux Foundation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
@@ -75,6 +75,8 @@ static int mitigate_inrush_notifier_cb(struct notifier_block *nb,
subsys->booted = true;
drv_data->subsys_boot_count++;
break;
+ default:
+ return NOTIFY_DONE;
}
/*