diff options
author | Luke Zhang <lukez@codeaurora.org> | 2017-07-16 11:54:53 -0700 |
---|---|---|
committer | Michael Bestas <mkbestas@lineageos.org> | 2019-12-11 23:50:40 +0200 |
commit | dab8168a54eba1619ed95cd302443abb18b59119 (patch) | |
tree | 165678ef43171877e2d23bc8e378c2399e712ee0 | |
parent | 109b4ce2bbae793b39fc137336b57eec4fbf7745 (diff) | |
download | android_system_bt-dab8168a54eba1619ed95cd302443abb18b59119.tar.gz android_system_bt-dab8168a54eba1619ed95cd302443abb18b59119.tar.bz2 android_system_bt-dab8168a54eba1619ed95cd302443abb18b59119.zip |
Prevent abort in case of command timeout
In case of command timeout, if we have crash SOC and collect ram
dumps, then we do not need to call abort() anymore.
CRs-fixed: 2074622
Change-Id: I13a0fc0fbaa21ee2ef400d6295eecad0865ffcad
-rw-r--r-- | hci/src/hci_layer.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/hci/src/hci_layer.cc b/hci/src/hci_layer.cc index ed2908cdd..6aa1a239f 100644 --- a/hci/src/hci_layer.cc +++ b/hci/src/hci_layer.cc @@ -442,7 +442,7 @@ static void hci_timeout_abort(void* unused_data) { // We shouldn't try to recover the stack from this command timeout. // If it's caused by a software bug, fix it. If it's a hardware bug, fix it. - abort(); + exit(0); } static void command_timed_out_log_info(void* original_wait_entry) { |