qcacmn: Fix ref leaks for vdev and peer
Fix ref leaks for vdev and peer in DP Change-Id: If75b7dd1d96d211c2360ef65052e19e783c9ea40 CRs-Fixed: 3469902
This commit is contained in:

committed by
Madan Koyyalamudi

parent
b33c5ecbf3
commit
e8753b5a36
@@ -472,8 +472,10 @@ static QDF_STATUS dp_vdev_set_monitor_mode(struct cdp_soc_t *dp_soc,
|
||||
|
||||
pdev = vdev->pdev;
|
||||
|
||||
if (!pdev || !pdev->monitor_pdev)
|
||||
if (!pdev || !pdev->monitor_pdev) {
|
||||
dp_vdev_unref_delete(soc, vdev, DP_MOD_ID_CDP);
|
||||
return QDF_STATUS_E_FAILURE;
|
||||
}
|
||||
|
||||
mon_pdev = pdev->monitor_pdev;
|
||||
|
||||
|
Reference in New Issue
Block a user