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:
Lihua Liu
2018-05-30 17:31:06 +08:00
committato da nshrivas
parent d6d1d3078e
commit 0db4f6506d

Vedi File

@@ -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) {