From owner-cvs-src@FreeBSD.ORG Fri May 16 11:41:51 2008 Return-Path: Delivered-To: cvs-src@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 919C81065675; Fri, 16 May 2008 11:41:51 +0000 (UTC) (envelope-from kib@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 5D3428FC18; Fri, 16 May 2008 11:41:51 +0000 (UTC) (envelope-from kib@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 m4GBfpUF091065; Fri, 16 May 2008 11:41:51 GMT (envelope-from kib@repoman.freebsd.org) Received: (from kib@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id m4GBfpY9091064; Fri, 16 May 2008 11:41:51 GMT (envelope-from kib) Message-Id: <200805161141.m4GBfpY9091064@repoman.freebsd.org> From: Konstantin Belousov Date: Fri, 16 May 2008 11:41:51 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: RELENG_6 Cc: Subject: cvs commit: src/sys/kern kern_conf.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 May 2008 11:41:51 -0000 kib 2008-05-16 11:41:51 UTC FreeBSD src repository Modified files: (Branch: RELENG_6) sys/kern kern_conf.c Log: MFC part of the rev. 1.210, and the rev. 1.211. In the giant_XXX wrappers for the device methods of the D_NEEDGIANT drivers, do not dereference the cdev->si_devsw. It is racing with the destroy_devl() clearing of the si_devsw. Instead, use the dev_refthread() and return ENXIO for the destroyed device. PR: kern/122287 Revision Changes Path 1.186.2.10 +64 -20 src/sys/kern/kern_conf.c