mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-14 08:36:12 -04:00
qcacld-3.0: Fix possible null pointer dereference
Fix possible null pointer deference in wlan_ipa_uc_ol_init when accessing passed osdev argument. Change-Id: I98b2679b7e73041315c4ccc2858eff79fbbcf026 CRs-Fixed: 2484996
This commit is contained in:
parent
5b867291af
commit
02a761e986
1 changed files with 6 additions and 0 deletions
|
|
@ -3117,6 +3117,12 @@ QDF_STATUS wlan_ipa_uc_ol_init(struct wlan_ipa_priv *ipa_ctx,
|
|||
|
||||
ipa_debug("enter");
|
||||
|
||||
if (!osdev) {
|
||||
ipa_err("osdev null");
|
||||
status = QDF_STATUS_E_FAILURE;
|
||||
goto fail_return;
|
||||
}
|
||||
|
||||
for (i = 0; i < WLAN_IPA_MAX_SESSION; i++) {
|
||||
ipa_ctx->vdev_to_iface[i] = WLAN_IPA_MAX_SESSION;
|
||||
ipa_ctx->vdev_offload_enabled[i] = false;
|
||||
|
|
|
|||
Loading…
Reference in a new issue