Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 07da1dc6 authored by Avaneesh Kumar Dwivedi's avatar Avaneesh Kumar Dwivedi Committed by Gerrit - the friendly Code Review server
Browse files

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: default avatarAvaneesh Kumar Dwivedi <akdwived@codeaurora.org>
parent 747b0f6a
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
/*
 * 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;
	}

	/*