Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 Mar 2009 00:09:29 +0000 (UTC)
From:      Sam Leffler <sam@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r189713 - head/sys/dev/ath/ath_hal
Message-ID:  <200903120009.n2C09TVP010404@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: sam
Date: Thu Mar 12 00:09:29 2009
New Revision: 189713
URL: http://svn.freebsd.org/changeset/base/189713

Log:
  add asserts

Modified:
  head/sys/dev/ath/ath_hal/ah.c

Modified: head/sys/dev/ath/ath_hal/ah.c
==============================================================================
--- head/sys/dev/ath/ath_hal/ah.c	Thu Mar 12 00:03:55 2009	(r189712)
+++ head/sys/dev/ath/ath_hal/ah.c	Thu Mar 12 00:09:29 2009	(r189713)
@@ -844,6 +844,7 @@ ath_hal_ini_write(struct ath_hal *ah, co
 {
 	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[], 
 {
 	int r;
 
+	HALASSERT(col < ia->cols);
 	for (r = 0; r < ia->rows; r++)
 		data[r] = HAL_INI_VAL(ia, r, col);
 }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200903120009.n2C09TVP010404>