Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 14 May 2010 21:27:39 +0000 (UTC)
From:      Matt Jacob <mjacob@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r208101 - head/sys/geom/multipath
Message-ID:  <201005142127.o4ELRdDS075153@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mjacob
Date: Fri May 14 21:27:39 2010
New Revision: 208101
URL: http://svn.freebsd.org/changeset/base/208101

Log:
  Yet another potential dereference of a dead provider.
  
  Sponsored by:   Panasas
  MFC after:	1 week

Modified:
  head/sys/geom/multipath/g_multipath.c

Modified: head/sys/geom/multipath/g_multipath.c
==============================================================================
--- head/sys/geom/multipath/g_multipath.c	Fri May 14 21:11:58 2010	(r208100)
+++ head/sys/geom/multipath/g_multipath.c	Fri May 14 21:27:39 2010	(r208101)
@@ -197,7 +197,7 @@ g_multipath_done_error(struct bio *bp)
 				break;
 			}
 		}
-		if (sc->cp_active == NULL) {
+		if (sc->cp_active == NULL || sc->cp_active->provider == NULL) {
 			printf("GEOM_MULTIPATH: out of providers for %s\n",
 			    sc->sc_name);
 			g_topology_unlock();



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