瀏覽代碼

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
Ashish Kumar Dhanotiya 5 年之前
父節點
當前提交
980943882f
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      components/pmo/core/src/wlan_pmo_ns.c

+ 1 - 1
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);