From 980943882ffe1b141d51b463806433873caf0ce2 Mon Sep 17 00:00:00 2001 From: Ashish Kumar Dhanotiya Date: Thu, 12 Sep 2019 14:30:27 +0530 Subject: [PATCH] qcacld-3.0: Release vdev reference in enable ns offload api Currently if num ns offload count is 0, vdev reference is not getting released in pmo core enable ns offload in fw api, this is resulting in vdev ref leak. To address above issue, release vdev ref count if num ns offload count is 0. Change-Id: I2cb7ebf974869f96e5c53faf3855c6c835c28a6c CRs-Fixed: 2521504 --- components/pmo/core/src/wlan_pmo_ns.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/pmo/core/src/wlan_pmo_ns.c b/components/pmo/core/src/wlan_pmo_ns.c index 8770167cf576..8255db3590dc 100644 --- a/components/pmo/core/src/wlan_pmo_ns.c +++ b/components/pmo/core/src/wlan_pmo_ns.c @@ -384,7 +384,7 @@ skip_ns_dynamic_check: qdf_spin_unlock_bh(&vdev_ctx->pmo_vdev_lock); pmo_debug("skip ns offload enable as ns count is 0"); status = QDF_STATUS_E_INVAL; - goto out; + goto dec_ref; } qdf_spin_unlock_bh(&vdev_ctx->pmo_vdev_lock);