git: 930a1341d62c - main - device_delete_child should be destroying the child, not the dev
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 09 Jan 2026 20:17:23 UTC
The branch main has been updated by imp:
URL: https://cgit.FreeBSD.org/src/commit/?id=930a1341d62ccc4be969c2261e3abaf0c0573a9f
commit 930a1341d62ccc4be969c2261e3abaf0c0573a9f
Author: AZero13 <gfunni234@gmail.com>
AuthorDate: 2025-12-18 02:09:31 +0000
Commit: Warner Losh <imp@FreeBSD.org>
CommitDate: 2026-01-09 20:17:12 +0000
device_delete_child should be destroying the child, not the dev
MFC After: 1 week
Reviewed by: imp, kib
Pull Request: https://github.com/freebsd/freebsd-src/pull/1934
---
sys/kern/subr_bus.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sys/kern/subr_bus.c b/sys/kern/subr_bus.c
index d2363d6c625e..c9d64e3674c6 100644
--- a/sys/kern/subr_bus.c
+++ b/sys/kern/subr_bus.c
@@ -1557,7 +1557,7 @@ device_delete_child(device_t dev, device_t child)
return (error);
}
- device_destroy_props(dev);
+ device_destroy_props(child);
if (child->devclass)
devclass_delete_device(child->devclass, child);
if (child->parent)