mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-14 08:36:12 -04:00
qcacld-3.0: Release PDEV in wlan startup error path
In hdd_wlan_startup, an object manager pdev is created, but never released when startup fails. Release the pdev object as appropriate under error conditions to close the leak. Change-Id: I9bfd927e5614d7d8b5c8a2238084c3387db60fd8 CRs-Fixed: 2139597
This commit is contained in:
parent
5c36e9d2d6
commit
792513d865
1 changed files with 1 additions and 0 deletions
|
|
@ -9945,6 +9945,7 @@ err_wiphy_unregister:
|
|||
|
||||
err_stop_modules:
|
||||
hdd_wlan_stop_modules(hdd_ctx, false);
|
||||
hdd_objmgr_release_and_destroy_pdev(hdd_ctx);
|
||||
|
||||
err_hdd_free_psoc:
|
||||
if (DRIVER_MODULES_CLOSED == hdd_ctx->driver_status) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue