mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-13 00:00:00 -04:00
qcacld-3.0: Try to recover from htc_connect_service failure
In the case of low memory allocation failures, the system should be able to continue functioning after the connect_service failure. Change-Id: Icd054d541aa95dbf4099426cf73f3dfe6c2c4565 CRs-Fixed: 2097391
This commit is contained in:
parent
5f7d38e894
commit
fa60ff5562
1 changed files with 7 additions and 3 deletions
|
|
@ -761,10 +761,14 @@ int htt_htc_attach(struct htt_pdev_t *pdev, uint16_t service_id)
|
|||
status = htc_connect_service(pdev->htc_pdev, &connect, &response);
|
||||
|
||||
if (status != QDF_STATUS_SUCCESS) {
|
||||
if (!cds_is_fw_down())
|
||||
QDF_BUG(0);
|
||||
if (cds_is_fw_down())
|
||||
return -EIO;
|
||||
|
||||
return -EIO; /* failure */
|
||||
if (status == QDF_STATUS_E_NOMEM ||
|
||||
cds_is_self_recovery_enabled())
|
||||
return qdf_status_to_os_return(status);
|
||||
|
||||
QDF_BUG(0);
|
||||
}
|
||||
|
||||
htt_update_endpoint(pdev, service_id, response.Endpoint);
|
||||
|
|
|
|||
Loading…
Reference in a new issue