summaryrefslogtreecommitdiffstats
path: root/sys/dev/ath/ath_hal/ah.c
diff options
context:
space:
mode:
authorsam <sam@FreeBSD.org>2009-03-12 00:09:29 +0000
committersam <sam@FreeBSD.org>2009-03-12 00:09:29 +0000
commitec17f9599d00b9f034d9c7a8e892dd6a5ef5c56b (patch)
tree0e0c82ac7eda27bff5deb2d1f961cba42d959923 /sys/dev/ath/ath_hal/ah.c
parent5b6ba969dee82d857e5caac02586d6c245a99d53 (diff)
downloadFreeBSD-src-ec17f9599d00b9f034d9c7a8e892dd6a5ef5c56b.zip
FreeBSD-src-ec17f9599d00b9f034d9c7a8e892dd6a5ef5c56b.tar.gz
add asserts
Diffstat (limited to 'sys/dev/ath/ath_hal/ah.c')
-rw-r--r--sys/dev/ath/ath_hal/ah.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/dev/ath/ath_hal/ah.c b/sys/dev/ath/ath_hal/ah.c
index 0462999..19150de 100644
--- a/sys/dev/ath/ath_hal/ah.c
+++ b/sys/dev/ath/ath_hal/ah.c
@@ -844,6 +844,7 @@ ath_hal_ini_write(struct ath_hal *ah, const HAL_INI_ARRAY *ia,
{
int r;
+ HALASSERT(col < ia->cols);
for (r = 0; r < ia->rows; r++) {
OS_REG_WRITE(ah, HAL_INI_VAL(ia, r, 0),
HAL_INI_VAL(ia, r, col));
@@ -857,6 +858,7 @@ ath_hal_ini_bank_setup(uint32_t data[], const HAL_INI_ARRAY *ia, int col)
{
int r;
+ HALASSERT(col < ia->cols);
for (r = 0; r < ia->rows; r++)
data[r] = HAL_INI_VAL(ia, r, col);
}
OpenPOWER on IntegriCloud