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
Cette révision appartient à :
Ashish Kumar Dhanotiya
2019-09-12 14:30:27 +05:30
révisé par nshrivas
Parent 133f74939d
révision 9e4fbd6596

Voir le fichier

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