Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F102742512
D47368.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
604 B
Referenced Files
None
Subscribers
None
D47368.diff
View Options
diff --git a/sys/isa/isa_common.c b/sys/isa/isa_common.c
--- a/sys/isa/isa_common.c
+++ b/sys/isa/isa_common.c
@@ -622,6 +622,12 @@
return (child);
}
+static void
+isa_child_deleted(device_t dev, device_t child)
+{
+ free(device_get_ivars(child), M_ISADEV);
+}
+
static int
isa_print_all_resources(device_t dev)
{
@@ -1058,6 +1064,7 @@
/* Bus interface */
DEVMETHOD(bus_add_child, isa_add_child),
+ DEVMETHOD(bus_child_deleted, isa_child_deleted),
DEVMETHOD(bus_print_child, isa_print_child),
DEVMETHOD(bus_probe_nomatch, isa_probe_nomatch),
DEVMETHOD(bus_read_ivar, isa_read_ivar),
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Nov 17, 2:38 PM (21 h, 46 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
14417928
Default Alt Text
D47368.diff (604 B)
Attached To
Mode
D47368: isa: Use a bus_child_deleted method to free ivars for children
Attached
Detach File
Event Timeline
Log In to Comment