Date: Thu, 27 Mar 2003 16:17:19 +0100 (CET) From: Nicolai Petri <nicolai@catpipe.net> To: FreeBSD-gnats-submit@FreeBSD.org Subject: kern/50348: On usb.ko unload usb and usbN devices are not destroyed. Message-ID: <200303271517.h2RFHJ3Q022610@unlink.catpipe.net> Resent-Message-ID: <200303271520.h2RFK6fR079120@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 50348 >Category: kern >Synopsis: On usb.ko unload usb and usbN devices are not destroyed. >Confidential: no >Severity: serious >Priority: medium >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Thu Mar 27 07:20:05 PST 2003 >Closed-Date: >Last-Modified: >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: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200303271517.h2RFHJ3Q022610>