Date: Mon, 6 Aug 2012 20:01:32 +0000 (UTC) From: Dimitry Andric <dim@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r239104 - head/sys/dev/aic7xxx Message-ID: <201208062001.q76K1WrP077171@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: dim Date: Mon Aug 6 20:01:32 2012 New Revision: 239104 URL: http://svn.freebsd.org/changeset/base/239104 Log: 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 MFC after: 1 week Modified: head/sys/dev/aic7xxx/aic79xx_osm.c Modified: head/sys/dev/aic7xxx/aic79xx_osm.c ============================================================================== --- head/sys/dev/aic7xxx/aic79xx_osm.c Mon Aug 6 19:49:57 2012 (r239103) +++ head/sys/dev/aic7xxx/aic79xx_osm.c Mon Aug 6 20:01:32 2012 (r239104) @@ -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?201208062001.q76K1WrP077171>