svn commit: r239524 - stable/9/sys/dev/aic7xxx

Dimitry Andric dim at FreeBSD.org
Tue Aug 21 19:24:39 UTC 2012


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.


More information about the svn-src-stable-9 mailing list