From 792513d86526a859e32a1bcfdfc9c77db6504bef Mon Sep 17 00:00:00 2001 From: Dustin Brown Date: Tue, 7 Nov 2017 11:07:09 -0800 Subject: [PATCH] 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 --- core/hdd/src/wlan_hdd_main.c | 1 + 1 file changed, 1 insertion(+) diff --git a/core/hdd/src/wlan_hdd_main.c b/core/hdd/src/wlan_hdd_main.c index 2c7d99dbad45..b2ab96e9fec1 100644 --- a/core/hdd/src/wlan_hdd_main.c +++ b/core/hdd/src/wlan_hdd_main.c @@ -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) {