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

Commit 6141368f authored by Anurag Chouhan's avatar Anurag Chouhan Committed by Gerrit - the friendly Code Review server
Browse files

icnss: Avoid calling icnss_fw_crashed twice



Avoid calling icnss_fw_crashed two times in case of
back to back root pd shutdown.

Change-Id: I84a6bd9945a27219ddca2ffe2b0929451974a053
Signed-off-by: default avatarAnurag Chouhan <achouhan@codeaurora.org>
parent b3063fa5
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
/* Copyright (c) 2015-2018, The Linux Foundation. All rights reserved.
/* Copyright (c) 2015-2019, 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
@@ -2497,6 +2497,7 @@ static int icnss_driver_event_pd_service_down(struct icnss_priv *priv,
		goto out;
	}

	if (!test_bit(ICNSS_PD_RESTART, &priv->state))
		icnss_fw_crashed(priv, event_data);

out: