⬢ DragonFlyBSD Kernel Audit
DF-4520 / fix.diff
← back to finding ↓ download raw
--- a/sys/dev/netif/ath/ath_hal/ar5212/ar5212_attach.c
+++ b/sys/dev/netif/ath/ath_hal/ar5212/ar5212_attach.c
@@ -860,7 +860,7 @@
 		pCap->halTsfAddSupport = AH_TRUE;
 
 	if (ath_hal_eepromGet(ah, AR_EEP_MAXQCU, &val) == HAL_OK)
-		pCap->halTotalQueues = val;
+		pCap->halTotalQueues = AH_MIN(val, HAL_NUM_TX_QUEUES);
 	else
 		pCap->halTotalQueues = HAL_NUM_TX_QUEUES;