mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-25 14:13:01 -04:00
qcacld-3.0: Fix pointer dereference condition
In the APi wlansap_roam_callback, under switch case of roam result eCSR_ROAM_RESULT_INFRA_ASSOCIATION_IND, the driver passes csr_roam_info in wlansap_roam_process_infra_assoc_ind without a NULL check for the same, which may cause pointer dereference. Fix is to call wlansap_roam_process_infra_assoc_ind only if csr_roam_info is valid Change-Id: I6388b7c8f7af827a5c2a862779f04b22c5c5f23e CRs-Fixed: 2260094
This commit is contained in:
parent
6aaaa997e4
commit
6f53cf10d5
1 changed files with 3 additions and 1 deletions
|
|
@ -1124,7 +1124,9 @@ wlansap_roam_callback(void *ctx, struct csr_roam_info *csr_roam_info,
|
|||
|
||||
switch (roam_result) {
|
||||
case eCSR_ROAM_RESULT_INFRA_ASSOCIATION_IND:
|
||||
wlansap_roam_process_infra_assoc_ind(sap_ctx, roam_result,
|
||||
if (csr_roam_info)
|
||||
wlansap_roam_process_infra_assoc_ind(sap_ctx,
|
||||
roam_result,
|
||||
csr_roam_info, &qdf_ret_status);
|
||||
break;
|
||||
case eCSR_ROAM_RESULT_INFRA_ASSOCIATION_CNF:
|
||||
|
|
|
|||
Loading…
Reference in a new issue