Date: Fri, 17 Mar 2023 20:05:48 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 270270] mii: memory leak when mii_attach() fails Message-ID: <bug-270270-227-exVkF2qCon@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-270270-227@https.bugs.freebsd.org/bugzilla/>
index | next in thread | previous in thread | raw e-mail
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=270270 --- Comment #3 from Jiahao LI <jiahali@blackberry.com> --- (In reply to Mina Galić from comment #2) Thanks for the suggestions. I agree that it would be better to clean up the softc in device_delete_child(). Since changing the device_delete_child() would have an impact on many devices and the softc will be allocated if the "miibus" input parameter of mii_attach() is null, I only change it in the mii_attach() for minimal impact of other components. It would be better that Freebsd can re-investigate the memory allocation issues using device_*() APIs. -- You are receiving this mail because: You are the assignee for the bug.home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-270270-227-exVkF2qCon>
