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>
This commit is contained in:
Avaneesh Kumar Dwivedi 2016-02-02 19:36:04 +05:30 committed by David Keitel
parent d2e98e8037
commit b853a0682a

View file

@ -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;
}
/*