Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 21 Aug 2012 19:24:39 +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: r239524 - stable/9/sys/dev/aic7xxx
Message-ID:  <201208211924.q7LJOdEd091105@svn.freebsd.org>

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

Log:
  MFC r239104:
  
  In sys/dev/aic7xxx/aic79xx_osm.c, function ahd_attach(), initialize the
  'path' variable to NULL, to avoid using it uninitialized in certain
  cases.
  
  Found by:	clang 3.2

Modified:
  stable/9/sys/dev/aic7xxx/aic79xx_osm.c
Directory Properties:
  stable/9/sys/   (props changed)

Modified: stable/9/sys/dev/aic7xxx/aic79xx_osm.c
==============================================================================
--- stable/9/sys/dev/aic7xxx/aic79xx_osm.c	Tue Aug 21 19:21:46 2012	(r239523)
+++ stable/9/sys/dev/aic7xxx/aic79xx_osm.c	Tue Aug 21 19:24:39 2012	(r239524)
@@ -222,6 +222,7 @@ ahd_attach(struct ahd_softc *ahd)
 	count = 0;
 	devq = NULL;
 	sim = NULL;
+	path = NULL;
 
 	/*
 	 * Create a thread to perform all recovery.



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