From owner-cvs-src-old@FreeBSD.ORG Tue Aug 25 17:00:21 2009 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9D30310656E8 for ; Tue, 25 Aug 2009 17:00:21 +0000 (UTC) (envelope-from thompsa@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 9D0C98FC5B for ; Tue, 25 Aug 2009 17:00:18 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id n7PH0IqZ088102 for ; Tue, 25 Aug 2009 17:00:18 GMT (envelope-from thompsa@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id n7PH0IYM088101 for cvs-src-old@freebsd.org; Tue, 25 Aug 2009 17:00:18 GMT (envelope-from thompsa@repoman.freebsd.org) Message-Id: <200908251700.n7PH0IYM088101@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to thompsa@repoman.freebsd.org using -f From: Andrew Thompson Date: Tue, 25 Aug 2009 16:59:55 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/dev/usb usb_process.c X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 25 Aug 2009 17:00:21 -0000 thompsa 2009-08-25 16:59:55 UTC FreeBSD src repository Modified files: sys/dev/usb usb_process.c Log: SVN rev 196547 on 2009-08-25 16:59:55Z by thompsa It is possible for all the kthreads to exit (hci modules unloaded) which in turn ends our usb process. This means the proc pointer becomes invalid and will panic if a new kthread is added. Count the number of threads and clear the proc pointer on the last one. Suggested by: julian MFC after: 3 days Revision Changes Path 1.12 +9 -0 src/sys/dev/usb/usb_process.c