https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=270270
Bug ID: 270270
Summary: mii: memory leak when mii_attach() fails
Product: Base System
Version: CURRENT
Hardware: Any
OS: Any
Status: New
Severity: Affects Many People
Priority: ---
Component: kern
Assignee: [email protected]
Reporter: [email protected]
Created attachment 240901
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=240901&action=edit
Fix of memory leak when mii_attach() fails
When the PHY attach fails, the allocated miibus->softc from mii_attach() ->
device_set_driver() is not free. There is a memory leak for the "bus-sc"
memory.
A proposed fix is attached.
--
You are receiving this mail because:
You are the assignee for the bug.