cvs commit: src/sys/pci if_sk.c if_skreg.h
Bjoern A. Zeeb
bz at FreeBSD.org
Thu Mar 17 06:27:22 PST 2005
bz 2005-03-17 14:27:22 UTC
FreeBSD src repository
Modified files:
sys/pci if_sk.c if_skreg.h
Log:
Do not try to free non allocated memory in error case.
Do our best to plug some memory leaks (VPD data, jumbo memory buffer,...).
Log if we cannot free because memory still in use[1].
Change locking to avoid ''acquiring duplicate lock of same
type: "network driver"'' and potential deadlock. Also seems to fix LOR #063.
[1] This change does not solve problems if buffers are still in use when
unloading if_sk.ko. There is ongoing work which will address jumbogram
allocations in a more general way.
PR: kern/75677 (with changes, no mii fixes in here)
Tested by: net, Antoine Brodin (slightly different version)
Approved by: rwatson (mentor)
MFC after: 5 days
Revision Changes Path
1.102 +56 -12 src/sys/pci/if_sk.c
1.28 +5 -1 src/sys/pci/if_skreg.h
More information about the cvs-src
mailing list