[Bug 262899] [PATCH]if_axgbe: properly release resource in error case
Date: Tue, 29 Mar 2022 06:14:18 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=262899
Bug ID: 262899
Summary: [PATCH]if_axgbe: properly release resource in error
case
Product: Base System
Version: CURRENT
Hardware: Any
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: kern
Assignee: bugs@FreeBSD.org
Reporter: ztong0001@gmail.com
Created attachment 232794
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=232794&action=edit
patch
The allocated resources should be properly released on error case,
otherwise kernel will print
ax0: Invalid mac address
ax0: IFDI_ATTACH_PRE failed 22
device_attach: ax0 attach returned 22
pci0:1:0:0: Device leaked memory resources
This patch is also submitted on GitHub and Phabricator
https://reviews.freebsd.org/D34628
https://github.com/freebsd/freebsd-src/pull/593
Thanks,
- Tong
--
You are receiving this mail because:
You are the assignee for the bug.