From owner-svn-src-stable-8@FreeBSD.ORG Sat Dec 12 12:31:11 2009 Return-Path: Delivered-To: svn-src-stable-8@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6F7521065670; Sat, 12 Dec 2009 12:31:11 +0000 (UTC) (envelope-from antoine@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 5DEAA8FC14; Sat, 12 Dec 2009 12:31:11 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id nBCCVBi3052594; Sat, 12 Dec 2009 12:31:11 GMT (envelope-from antoine@svn.freebsd.org) Received: (from antoine@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id nBCCVBEw052592; Sat, 12 Dec 2009 12:31:11 GMT (envelope-from antoine@svn.freebsd.org) Message-Id: <200912121231.nBCCVBEw052592@svn.freebsd.org> From: Antoine Brodin Date: Sat, 12 Dec 2009 12:31:11 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-8@freebsd.org X-SVN-Group: stable-8 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r200433 - stable/8/sys/net80211 X-BeenThere: svn-src-stable-8@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for only the 8-stable src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 12 Dec 2009 12:31:11 -0000 Author: antoine Date: Sat Dec 12 12:31:11 2009 New Revision: 200433 URL: http://svn.freebsd.org/changeset/base/200433 Log: MFC r199186 to stable/8: Fix off by one in ieee80211_send_action_register Found by: phk's FlexeLint in September Reviewed by: rpaulo@ Modified: stable/8/sys/net80211/ieee80211_action.c Directory Properties: stable/8/sys/ (props changed) stable/8/sys/amd64/include/xen/ (props changed) stable/8/sys/cddl/contrib/opensolaris/ (props changed) stable/8/sys/contrib/dev/acpica/ (props changed) stable/8/sys/contrib/pf/ (props changed) stable/8/sys/dev/xen/xenpci/ (props changed) Modified: stable/8/sys/net80211/ieee80211_action.c ============================================================================== --- stable/8/sys/net80211/ieee80211_action.c Sat Dec 12 10:37:31 2009 (r200432) +++ stable/8/sys/net80211/ieee80211_action.c Sat Dec 12 12:31:11 2009 (r200433) @@ -105,7 +105,7 @@ ieee80211_send_action_register(int cat, meshlm_send_action[act] = f; return 0; case IEEE80211_ACTION_CAT_MESHPATH: - if (act > N(hwmp_send_action)) + if (act >= N(hwmp_send_action)) break; hwmp_send_action[act] = f; return 0;