From a98f2b2b31aa200c65c6bc8037994618ebe9597b Mon Sep 17 00:00:00 2001 From: Ashish Kumar Dhanotiya Date: Tue, 5 Sep 2017 19:06:12 +0530 Subject: qcacld-3.0: BUG_ON only if fw is up in cds_force_assert_target In cds_force_assert_target api force assert is triggered to fw which may result in failure if modem is down. This will result in BUG_ON. To address this issue add a check to BUG_ON only if fw is up. CRs-Fixed: 2101910 Change-Id: I2473dece3b277c7f1f351623dae835637bad4a81 --- core/cds/src/cds_api.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/cds/src/cds_api.c b/core/cds/src/cds_api.c index d633866fb927..474e400b30bd 100644 --- a/core/cds/src/cds_api.c +++ b/core/cds/src/cds_api.c @@ -1776,7 +1776,9 @@ static QDF_STATUS cds_force_assert_target(qdf_device_t qdf_ctx) "Self Recovery not supported via Platform driver assert"); cds_set_recovery_in_progress(false); - QDF_BUG(0); + + if (!cds_is_fw_down()) + QDF_BUG(0); return QDF_STATUS_E_INVAL; } -- cgit v1.2.3