From owner-cvs-all@FreeBSD.ORG Thu Feb 28 18:31:54 2008 Return-Path: Delivered-To: cvs-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BED6A106566B; Thu, 28 Feb 2008 18:31:54 +0000 (UTC) (envelope-from philip@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 8B3448FC14; Thu, 28 Feb 2008 18:31:54 +0000 (UTC) (envelope-from philip@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id m1SIVsfq080212; Thu, 28 Feb 2008 18:31:54 GMT (envelope-from philip@repoman.freebsd.org) Received: (from philip@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id m1SIVsRw080211; Thu, 28 Feb 2008 18:31:54 GMT (envelope-from philip) Message-Id: <200802281831.m1SIVsRw080211@repoman.freebsd.org> From: Philip Paeps Date: Thu, 28 Feb 2008 18:31:54 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/sys/dev/md md.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 28 Feb 2008 18:31:54 -0000 philip 2008-02-28 18:31:54 UTC FreeBSD src repository Modified files: sys/dev/md md.c Log: Zero sc->vnode if mdsetcred() fails. This fixes the panic which happens when mdcreate_vnode() calls vn_close() and mddestroy() calls it again further down the error handling path. Reviewed by: kris, kib MFC after: 3 days Revision Changes Path 1.174 +1 -0 src/sys/dev/md/md.c