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:
Dustin Brown 2017-11-07 11:07:09 -08:00 • committed by snandini
commit 792513d865

View file

@ -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) {