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:
parent
d2e98e8037
commit
b853a0682a
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
/*
|
||||
|
|
Loading…
Add table
Reference in a new issue