mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-12 07:37:31 -04:00
qcacld-3.0: Fix use-after-free in hdd_we_set_11d_state
In hdd_we_set_11d_state(), @sme_config is accessed immediately after being freed. Avoid accessing freed memory. Change-Id: I7ad19f6846bce1d0f99b7712f1036c81ea363815 CRs-Fixed: 2247652
This commit is contained in:
parent
200ae56129
commit
ea82d5638b
1 changed files with 1 additions and 1 deletions
|
|
@ -4100,7 +4100,7 @@ static int hdd_we_set_11d_state(struct hdd_context *hdd_ctx, int state_11d)
|
|||
|
||||
qdf_mem_free(sme_config);
|
||||
|
||||
hdd_debug("11D state=%d", sme_config->csrConfig.Is11dSupportEnabled);
|
||||
hdd_debug("11D state=%d", enable_11d);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue