From owner-svn-src-all@FreeBSD.ORG Thu Mar 12 00:09:29 2009 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id B82FC1065747; Thu, 12 Mar 2009 00:09:29 +0000 (UTC) (envelope-from sam@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id A552E8FC1A; Thu, 12 Mar 2009 00:09:29 +0000 (UTC) (envelope-from sam@FreeBSD.org) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id n2C09TM2010405; Thu, 12 Mar 2009 00:09:29 GMT (envelope-from sam@svn.freebsd.org) Received: (from sam@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id n2C09TVP010404; Thu, 12 Mar 2009 00:09:29 GMT (envelope-from sam@svn.freebsd.org) Message-Id: <200903120009.n2C09TVP010404@svn.freebsd.org> From: Sam Leffler Date: Thu, 12 Mar 2009 00:09:29 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r189713 - head/sys/dev/ath/ath_hal X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Mar 2009 00:09:30 -0000 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); }