mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-12 15:49:17 -04:00
qcacmn: Fix error in check against max vdev for a pdev
The current implementation allows one extra vdev to be created than the max vdevs allowed for a pdev. Correct the check to allow only max vdevs to be created for a pdev. Change-Id: I589ae204abe87f5a727489494a34807a45d501fa CRs-Fixed: 2415783
This commit is contained in:
parent
daec45f472
commit
90f688d589
1 changed files with 1 additions and 1 deletions
|
|
@ -586,7 +586,7 @@ QDF_STATUS wlan_objmgr_pdev_vdev_attach(struct wlan_objmgr_pdev *pdev,
|
|||
|
||||
wlan_pdev_obj_lock(pdev);
|
||||
/* If Max vdev count exceeds, return failure */
|
||||
if (objmgr->wlan_vdev_count > objmgr->max_vdev_count) {
|
||||
if (objmgr->wlan_vdev_count >= objmgr->max_vdev_count) {
|
||||
wlan_pdev_obj_unlock(pdev);
|
||||
return QDF_STATUS_E_FAILURE;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue