mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-14 00:24:41 -04:00
qcacld-3.0: Validate the hif_ctx before dereferencing
Validate the hif_ctx from cds_get_context before deferencing. Change-Id: I352104058143224d2555d3323747719bd14066e5 CRs-Fixed: 1052039
This commit is contained in:
parent
d6c90fa458
commit
1318b99a8d
1 changed files with 5 additions and 0 deletions
|
|
@ -1720,6 +1720,11 @@ int hdd_wlan_start_modules(hdd_context_t *hdd_ctx, hdd_adapter_t *adapter,
|
|||
}
|
||||
|
||||
hif_ctx = cds_get_context(QDF_MODULE_ID_HIF);
|
||||
if (!hif_ctx) {
|
||||
hdd_err("hif context is null!!");
|
||||
goto power_down;
|
||||
}
|
||||
|
||||
status = ol_cds_init(qdf_dev, hif_ctx);
|
||||
if (status != QDF_STATUS_SUCCESS) {
|
||||
hdd_err("No Memory to Create BMI Context :%d", status);
|
||||
|
|
|
|||
Loading…
Reference in a new issue