Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 8 Jan 2010 21:02:12 +0000 (UTC)
From:      Edward Tomasz Napierala <trasz@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r201822 - head/sys/dev/iwn
Message-ID:  <201001082102.o08L2CuZ090055@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: trasz
Date: Fri Jan  8 21:02:12 2010
New Revision: 201822
URL: http://svn.freebsd.org/changeset/base/201822

Log:
  Fix array overflow.
  
  Reviewed by:	rpaulo

Modified:
  head/sys/dev/iwn/if_iwn.c

Modified: head/sys/dev/iwn/if_iwn.c
==============================================================================
--- head/sys/dev/iwn/if_iwn.c	Fri Jan  8 20:40:28 2010	(r201821)
+++ head/sys/dev/iwn/if_iwn.c	Fri Jan  8 21:02:12 2010	(r201822)
@@ -3928,7 +3928,7 @@ iwn5000_get_rssi(struct iwn_softc *sc, s
 
 	DPRINTF(sc, IWN_DEBUG_RECV, "%s: agc %d rssi %d %d %d "
 	    "result %d\n", __func__, agc,
-	    phy->rssi[0], phy->rssi[2], phy->rssi[4],
+	    phy->rssi[0], phy->rssi[1], phy->rssi[2],
 	    rssi - agc - IWN_RSSI_TO_DBM);
 	return rssi - agc - IWN_RSSI_TO_DBM;
 }



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