mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 07:03:09 -04:00
qcacld-3.0: Fix TDLS timer leak when unloading
If firmware is stuck while driver unloading, sme_close_session will return failure, and cause later timer leak, in this case continue to release vdev. Change-Id: I137d8d29ec18af1b222eb0b967916fa20b998894 CRs-Fixed: 2176949
This commit is contained in:
parent
b6da935127
commit
c66d4bf13c
1 changed files with 4 additions and 3 deletions
|
|
@ -3628,10 +3628,11 @@ int hdd_vdev_destroy(struct hdd_adapter *adapter)
|
|||
}
|
||||
|
||||
release_vdev:
|
||||
/* In SSR case, directly exit may cause objects leaks,
|
||||
* if sme_close_session failed.Free objects anyway.
|
||||
/*
|
||||
* In SSR or driver unloading case, directly exit may cause objects
|
||||
* leak, if sme_close_session failed. Free objects anyway.
|
||||
*/
|
||||
if (errno && !cds_is_driver_recovering())
|
||||
if (errno && !(cds_is_driver_recovering() || cds_is_driver_unloading()))
|
||||
return errno;
|
||||
|
||||
/* do vdev logical destroy via objmgr */
|
||||
|
|
|
|||
Loading…
Reference in a new issue