Date: Mon, 23 Aug 2004 21:15:13 -0600 (MDT) From: "M. Warner Losh" <imp@bsdimp.com> To: current@freebsd.org Subject: speaker load/unload bug fix Message-ID: <20040823.211513.08944324.imp@bsdimp.com>
next in thread | raw e-mail | index | archive | help
Someone posted a bug where you did: kldload speaker kldunload speaker devinfo -v <crash> Here's a patch... Warner Index: subr_bus.c =================================================================== RCS file: /home/ncvs/src/sys/kern/subr_bus.c,v retrieving revision 1.156 diff -u -r1.156 subr_bus.c --- subr_bus.c 18 Jul 2004 16:30:31 -0000 1.156 +++ subr_bus.c 24 Aug 2004 03:07:18 -0000 @@ -1471,7 +1471,6 @@ devclass_delete_device(child->devclass, child); TAILQ_REMOVE(&dev->children, child, link); TAILQ_REMOVE(&bus_data_devices, child, devlink); - device_set_desc(child, NULL); kobj_delete((kobj_t) child, M_BUS); bus_data_generation_update(); @@ -2232,6 +2231,7 @@ dev->state = DS_NOTPRESENT; device_set_driver(dev, NULL); + device_set_desc(child, NULL); device_sysctl_fini(dev); return (0);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040823.211513.08944324.imp>