From npp@unlink.catpipe.net  Thu Mar 27 07:17:29 2003
Return-Path: <npp@unlink.catpipe.net>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 3488F37B401
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 27 Mar 2003 07:17:29 -0800 (PST)
Received: from unlink.catpipe.net (unlink.catpipe.net [195.249.214.172])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 3021043F75
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 27 Mar 2003 07:17:28 -0800 (PST)
	(envelope-from npp@unlink.catpipe.net)
Received: from unlink.catpipe.net (localhost [127.0.0.1])
	by unlink.catpipe.net (8.12.8/8.12.8) with ESMTP id h2RFHJlr022611
	for <FreeBSD-gnats-submit@freebsd.org>; Thu, 27 Mar 2003 16:17:20 +0100 (CET)
	(envelope-from npp@unlink.catpipe.net)
Received: (from root@localhost)
	by unlink.catpipe.net (8.12.8/8.12.8/Submit) id h2RFHJ3Q022610;
	Thu, 27 Mar 2003 16:17:19 +0100 (CET)
Message-Id: <200303271517.h2RFHJ3Q022610@unlink.catpipe.net>
Date: Thu, 27 Mar 2003 16:17:19 +0100 (CET)
From: Nicolai Petri <nicolai@catpipe.net>
Reply-To: Nicolai Petri <nicolai@catpipe.net>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: On usb.ko unload usb and usbN devices are not destroyed.
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         50348
>Category:       kern
>Synopsis:       On usb.ko unload usb and usbN devices are not destroyed.
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    joe
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Mar 27 07:20:05 PST 2003
>Closed-Date:    Mon Aug 02 16:54:24 GMT 2004
>Last-Modified:  Mon Aug 02 16:54:24 GMT 2004
>Originator:     Nicolai Petri
>Release:        FreeBSD 5.0-CURRENT i386
>Organization:
catpipe Systems ApS, Denmark
>Environment:
System: FreeBSD d-montest.catpipe.net 5.0-CURRENT FreeBSD 5.0-CURRENT #1: Sun Mar 23 21:34:13 CET 2003 root@d-montest.catpipe.net:/data/obj/data/5.0-src/sys/MYKERN i386


>Description:
	When loading usb.ko 2 devices is created for each found usb controller,
	these devices are not destroyed on usb.ko unload. This leads to
	a kernel panic when accessing /dev/usb* using tools like usbdevs.
>How-To-Repeat:
	kldload usb
	kldunload usb
	usbdevs -v; #instant panic
>Fix:
	Register dev_t for each invocation of make_dev (in the softc ?)
	and call destroy_dev on unload.

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->joe 
Responsible-Changed-By: kris 
Responsible-Changed-When: Thu Jul 17 17:34:05 PDT 2003 
Responsible-Changed-Why:  
Assign to USB maintainer 

http://www.freebsd.org/cgi/query-pr.cgi?pr=50348 
State-Changed-From-To: open->closed 
State-Changed-By: iedowse 
State-Changed-When: Mon Aug 2 16:53:26 GMT 2004 
State-Changed-Why:  

This should now be fixed in -CURRENT. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=50348 
>Unformatted:
