diff options
author | Ashish Kumar Dhanotiya <adhanoti@codeaurora.org> | 2017-09-05 19:06:12 +0530 |
---|---|---|
committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2017-09-06 07:17:20 -0700 |
commit | a98f2b2b31aa200c65c6bc8037994618ebe9597b (patch) | |
tree | ceb437c6bdd0119a5bc231014d827cd428209bb7 /core/cds | |
parent | 7dee4df9ad0bc0907feffd12abc50fbc1b6d2246 (diff) | |
download | qcacld-a98f2b2b31aa200c65c6bc8037994618ebe9597b.tar.gz |
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
Diffstat (limited to 'core/cds')
-rw-r--r-- | core/cds/src/cds_api.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/core/cds/src/cds_api.c b/core/cds/src/cds_api.c index d633866fb9..474e400b30 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; } |