diff --git a/core/hdd/src/wlan_hdd_main.c b/core/hdd/src/wlan_hdd_main.c index adf65450064b..3abe089a6d64 100644 --- a/core/hdd/src/wlan_hdd_main.c +++ b/core/hdd/src/wlan_hdd_main.c @@ -8220,8 +8220,8 @@ err_free_config: qdf_mem_free(hdd_ctx->config); err_free_hdd_context: - wiphy_free(hdd_ctx->wiphy); mutex_destroy(&hdd_ctx->iface_change_lock); + wiphy_free(hdd_ctx->wiphy); err_out: return ERR_PTR(ret);