Bug 278100 - ena (Elastic Network Adapter) driver memory leak on detach
Summary: ena (Elastic Network Adapter) driver memory leak on detach
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: 14.0-STABLE
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-net (Nobody)
URL:
Keywords: easy
Depends on:
Blocks:
 
Reported: 2024-04-01 14:44 UTC by Mike Belanger
Modified: 2024-04-03 13:42 UTC (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Belanger 2024-04-01 14:44:43 UTC
Missing call to 
ifmedia_removeall(&adapter->media);
in ena_detach.

ifmedia_add allocates memory.
entry = malloc(sizeof(*entry), M_IFADDR, M_NOWAIT);
ifmedia_removeall will free the entries.
Comment 1 Arthur Kiyanovski 2024-04-03 13:42:26 UTC
Thanks for the report, will look into this