diff options
author | dim <dim@FreeBSD.org> | 2012-08-06 20:01:32 +0000 |
---|---|---|
committer | dim <dim@FreeBSD.org> | 2012-08-06 20:01:32 +0000 |
commit | c1db458e02cc57d3c5d7c0f9f2f734344d3bf52b (patch) | |
tree | 4c5008c7e39b835cc2e8731b94eecd7086ae5970 | |
parent | dafb325c89bb39f093c248f6ed6909bdbae50340 (diff) | |
download | FreeBSD-src-c1db458e02cc57d3c5d7c0f9f2f734344d3bf52b.zip FreeBSD-src-c1db458e02cc57d3c5d7c0f9f2f734344d3bf52b.tar.gz |
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
-rw-r--r-- | sys/dev/aic7xxx/aic79xx_osm.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sys/dev/aic7xxx/aic79xx_osm.c b/sys/dev/aic7xxx/aic79xx_osm.c index 1d44b9f..3f7b818 100644 --- a/sys/dev/aic7xxx/aic79xx_osm.c +++ b/sys/dev/aic7xxx/aic79xx_osm.c @@ -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. |