Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 21 Aug 2012 19:19:29 +0000 (UTC)
From:      Dimitry Andric <dim@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-9@freebsd.org
Subject:   svn commit: r239522 - stable/9/sys/dev/cxgb/ulp/iw_cxgb
Message-ID:  <201208211919.q7LJJTSV090330@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: dim
Date: Tue Aug 21 19:19:29 2012
New Revision: 239522
URL: http://svn.freebsd.org/changeset/base/239522

Log:
  MFC r239101:
  
  In cxgb(4), in function iwch_reregister_phys_mem(), initialize the
  'npages' variable to zero, to avoid using it uninitialized in certain
  cases.
  
  Found by:	clang 3.2
  Reviewed by:	np

Modified:
  stable/9/sys/dev/cxgb/ulp/iw_cxgb/iw_cxgb_provider.c
Directory Properties:
  stable/9/sys/   (props changed)

Modified: stable/9/sys/dev/cxgb/ulp/iw_cxgb/iw_cxgb_provider.c
==============================================================================
--- stable/9/sys/dev/cxgb/ulp/iw_cxgb/iw_cxgb_provider.c	Tue Aug 21 19:13:53 2012	(r239521)
+++ stable/9/sys/dev/cxgb/ulp/iw_cxgb/iw_cxgb_provider.c	Tue Aug 21 19:19:29 2012	(r239522)
@@ -487,7 +487,7 @@ static int iwch_reregister_phys_mem(stru
 	__be64 *page_list = NULL;
 	int shift = 0;
 	u64 total_size;
-	int npages;
+	int npages = 0;
 	int ret;
 
 	CTR3(KTR_IW_CXGB, "%s ib_mr %p ib_pd %p", __FUNCTION__, mr, pd);



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