From owner-svn-src-head@FreeBSD.ORG Fri May 14 21:27:39 2010 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E01031065670; Fri, 14 May 2010 21:27:39 +0000 (UTC) (envelope-from mjacob@FreeBSD.org) Received: from svn.freebsd.org (unknown [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id D03678FC19; Fri, 14 May 2010 21:27:39 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id o4ELRdrY075155; Fri, 14 May 2010 21:27:39 GMT (envelope-from mjacob@svn.freebsd.org) Received: (from mjacob@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id o4ELRdDS075153; Fri, 14 May 2010 21:27:39 GMT (envelope-from mjacob@svn.freebsd.org) Message-Id: <201005142127.o4ELRdDS075153@svn.freebsd.org> From: Matt Jacob Date: Fri, 14 May 2010 21:27:39 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r208101 - head/sys/geom/multipath X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 14 May 2010 21:27:40 -0000 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();