freebsd-skq/sys/dev/sk
Bjoern A. Zeeb e7f8ebb45e 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
2005-03-17 14:27:22 +00:00
..
if_sk.c Do not try to free non allocated memory in error case. 2005-03-17 14:27:22 +00:00
if_skreg.h Do not try to free non allocated memory in error case. 2005-03-17 14:27:22 +00:00
xmaciireg.h /* -> /*- for license, minor formatting changes 2005-01-07 02:29:27 +00:00
yukonreg.h /* -> /*- for license, minor formatting changes 2005-01-07 02:29:27 +00:00