DragonFlyBSD Kernel Audit
DF-1808 / fix.diff
← back to finding ↓ download raw
diff --git a/sys/dev/netif/ath/ath_hal/ar5211/ar5211_misc.c b/sys/dev/netif/ath/ath_hal/ar5211/ar5211_misc.c
--- a/sys/dev/netif/ath/ath_hal/ar5211/ar5211_misc.c
+++ b/sys/dev/netif/ath/ath_hal/ar5211/ar5211_misc.c
@@ -677,6 +677,7 @@
 		return ath_hal_eepromDiag(ah, request,
 		    args, argsize, result, resultsize);
 	case HAL_DIAG_RFGAIN:
+		ahp->ah_gainValues.currStep = NULL;
 		*result = &ahp->ah_gainValues;
 		*resultsize = sizeof(GAIN_VALUES);
 		return AH_TRUE;