git: 16ab2c318d93 - main - intelspi: don't leak spibus on detach.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Thu, 03 Aug 2023 16:11:57 UTC
The branch main has been updated by wulf: URL: https://cgit.FreeBSD.org/src/commit/?id=16ab2c318d93e7730c4cdaaca9c47e2f58c601c7 commit 16ab2c318d93e7730c4cdaaca9c47e2f58c601c7 Author: Vladimir Kondratyev <wulf@FreeBSD.org> AuthorDate: 2023-08-03 16:10:49 +0000 Commit: Vladimir Kondratyev <wulf@FreeBSD.org> CommitDate: 2023-08-03 16:10:49 +0000 intelspi: don't leak spibus on detach. MFC after: 1 week Reviewed by: manu Differential Revision: https://reviews.freebsd.org/D41241 --- sys/dev/intel/spi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/dev/intel/spi.c b/sys/dev/intel/spi.c index 0ac7a3b5e9bb..c2308c20f8cd 100644 --- a/sys/dev/intel/spi.c +++ b/sys/dev/intel/spi.c @@ -508,7 +508,7 @@ intelspi_detach(device_t dev) bus_release_resource(dev, SYS_RES_IRQ, sc->sc_irq_rid, sc->sc_irq_res); - return (bus_generic_detach(dev)); + return (device_delete_children(dev)); } int