mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 07:03:09 -04:00
qcacld-3.0: Fix crash during con_mod_handler
During con_mod_handler, cleanup of adapter is being done first and then wlan modules are getting closed. Because of which NAPI poll is still posting frames to a device/adapter which has been freed as part of mode change handler, leading to a crash. To address this issue first stop all wlan modules and then cleanup the adapter. Change-Id: I2fade59d1e4a27620cecadb91f69866e79c85612 CRs-Fixed: 2092132
This commit is contained in:
parent
4345341b24
commit
cda57668d7
1 changed files with 3 additions and 3 deletions
|
|
@ -11251,15 +11251,15 @@ static int __con_mode_handler(const char *kmessage, struct kernel_param *kp,
|
|||
goto reset_flags;
|
||||
}
|
||||
|
||||
/* Cleanup present mode before switching to new mode */
|
||||
hdd_cleanup_present_mode(hdd_ctx, curr_mode);
|
||||
|
||||
ret = hdd_wlan_stop_modules(hdd_ctx, true);
|
||||
if (ret) {
|
||||
hdd_err("Stop wlan modules failed");
|
||||
goto reset_flags;
|
||||
}
|
||||
|
||||
/* Cleanup present mode before switching to new mode */
|
||||
hdd_cleanup_present_mode(hdd_ctx, curr_mode);
|
||||
|
||||
hdd_set_conparam(con_mode);
|
||||
|
||||
/* Register for new con_mode & then kick_start modules again */
|
||||
|
|
|
|||
Loading…
Reference in a new issue