mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
qcacld-3.0: Fix potential NULL reference in wlan_ipa_uc_loaded_handler
In function wlan_ipa_uc_loaded_handler,the qdf_dev is as return of wlan_psoc_get_qdf_dev(),which maybe NULL,then NULL reference could occur later. Change-Id: I3c6d5af35934deef643cb600b1966c22769c71ed CRs-Fixed: 2250977
This commit is contained in:
parent
5ac9c22fe9
commit
15f6e45a5c
1 changed files with 4 additions and 0 deletions
|
|
@ -2447,6 +2447,10 @@ static void wlan_ipa_uc_loaded_handler(struct wlan_ipa_priv *ipa_ctx)
|
|||
return;
|
||||
}
|
||||
|
||||
if (!qdf_dev) {
|
||||
ipa_err("qdf_dev is null");
|
||||
return;
|
||||
}
|
||||
/* Connect pipe */
|
||||
status = wlan_ipa_wdi_setup(ipa_ctx, qdf_dev);
|
||||
if (status) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue