summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordim <dim@FreeBSD.org>2012-08-06 20:01:32 +0000
committerdim <dim@FreeBSD.org>2012-08-06 20:01:32 +0000
commitc1db458e02cc57d3c5d7c0f9f2f734344d3bf52b (patch)
tree4c5008c7e39b835cc2e8731b94eecd7086ae5970
parentdafb325c89bb39f093c248f6ed6909bdbae50340 (diff)
downloadFreeBSD-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.c1
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.
OpenPOWER on IntegriCloud