freebsd-nq/sys
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
..
alpha Customize this for the alpha by removing pc98 defines (unused on alpha) 2005-03-16 20:54:48 +00:00
amd64 Remove comments relevant only to pc98 as there are no amd64 pc98 machines. 2005-03-16 20:55:15 +00:00
arm Use PCIR_BARS instead of PCIR_MAPS. 2005-03-17 00:43:57 +00:00
boot Ensure GCC does not use FP registers in integer code. 2005-03-15 18:43:36 +00:00
bsm Add a stub audit_kevents.h, which defines exactly one audit event: 2005-02-02 14:27:36 +00:00
cam Reference a pointer correctly when copying to it's location. 2005-02-21 00:28:36 +00:00
coda Disable two users of findcdev. They do the wrong thing now and will 2005-03-15 12:39:30 +00:00
compat Neuter the duplicated disk-device magic code for now. Somebody with 2005-03-15 11:58:40 +00:00
conf Bring back some of the ioctl junk that was removed in rev 1.59 as a 2005-03-17 01:20:49 +00:00
contrib This commit was generated by cvs2svn to compensate for changes in r143439, 2005-03-12 00:17:37 +00:00
crypto gbde(8) is also rejndael user. 2005-03-11 22:07:04 +00:00
ddb Start each of the license/copyright comments with /*- 2005-01-06 01:34:41 +00:00
dev Do not try to free non allocated memory in error case. 2005-03-17 14:27:22 +00:00
doc
fs Prepare for the final onslaught on devices: 2005-03-17 12:07:00 +00:00
gdb /* -> /*- for copyright notices, minor format tweaks as necessary 2005-01-06 18:27:30 +00:00
geom Plug memory leak. 2005-03-16 20:48:13 +00:00
gnu Add two arguments to the vfs_hash() KPI so that filesystems which do 2005-03-16 11:20:51 +00:00
i4b /* -> /*- for copyright notices, minor format tweaks as necessary 2005-01-06 22:18:23 +00:00
i386 Bring back some of the ioctl junk that was removed in rev 1.59 as a 2005-03-17 01:20:49 +00:00
ia64 Refactor the bus_dma header files so that the interface is described in 2005-03-14 16:46:28 +00:00
isa Whitespace sync with amd64. (Rather than re-add the extra blank lines 2005-03-11 22:10:25 +00:00
isofs/cd9660 Add two arguments to the vfs_hash() KPI so that filesystems which do 2005-03-16 11:20:51 +00:00
kern Kill MAJOR_AUTO 2005-03-17 13:37:28 +00:00
libkern Add strspn() to libkern. 2005-02-10 20:39:39 +00:00
modules Add PSEUDOFS_TRACE option. 2005-03-14 16:04:27 +00:00
net Add a sysctl net.link.log_link_state_change, which allows to 2005-03-12 12:58:03 +00:00
net80211 correct comparison for null ptr 2005-03-16 20:42:00 +00:00
netatalk When generating a phase II ARP lookup from aarpwhohas(), use a 2005-02-22 14:37:22 +00:00
netatm In the current world order, solisten() implements the state transition of 2005-02-21 21:58:17 +00:00
netgraph Remove ng_connect_t where it is unused. Probably it remained from ng_source.c. 2005-03-14 20:49:48 +00:00
netinet plug resource leak 2005-03-16 05:27:19 +00:00
netinet6 correct bounds check 2005-03-16 05:11:11 +00:00
netipsec correct space check 2005-03-09 15:28:48 +00:00
netipx Marginally reformat my copyright statement to remove the spurious ','. 2005-03-10 14:19:31 +00:00
netkey fixed an unexpected addr/port matching failure in IPv6 SA management 2005-01-10 13:06:42 +00:00
netnatm Mark netatm and netnatm explicitly as requiring Giant, as they still do. 2005-02-17 14:21:22 +00:00
netncp avoid potential null ptr derefs 2005-02-23 22:44:38 +00:00
netsmb /* -> /*- for license, minor formatting changes 2005-01-07 01:45:51 +00:00
nfs /* -> /*- for license, minor formatting changes 2005-01-07 01:45:51 +00:00
nfs4client - It is no longer necessary to lock and unlock the vnode in nfs4_close() 2005-03-13 12:16:45 +00:00
nfsclient Use vfs_hash. 2005-03-16 11:28:19 +00:00
nfsserver Don't try to create vnode_pager objects on other filesystems vnodes, 2005-01-24 22:09:13 +00:00
opencrypto just use crypto/rijndael, and nuke opencrypto/rindael.[ch]. 2005-03-11 17:24:46 +00:00
pc98 Define IRQ_NPX for the irq used for the npx. Define macro for a full 2005-03-16 20:44:19 +00:00
pccard Remove more deadwood that never got implemented in NEWCARD, since NEWCARD 2005-02-15 02:54:53 +00:00
pci Do not try to free non allocated memory in error case. 2005-03-17 14:27:22 +00:00
posix4 /* -> /*- for license, minor formatting changes 2005-01-07 02:29:27 +00:00
powerpc Prepend underscore to bus_dmamap_{unload|sync} in line with 2005-03-15 11:43:05 +00:00
rpc /* -> /*- for license, minor formatting changes 2005-01-07 02:29:27 +00:00
security Remove an accidental clearing of the new label pointer on a system V 2005-02-24 16:08:41 +00:00
sparc64 Refactor the bus_dma header files so that the interface is described in 2005-03-14 16:46:28 +00:00
sys Kill MAJOR_AUTO 2005-03-17 13:37:28 +00:00
tools Add VOP_FOO_APV() which takes a pointer to the vop_vector. 2005-02-08 12:54:32 +00:00
ufs - Lock the clearing of v_data in ufs_reclaim() to prevent a pagefault 2005-03-17 11:58:43 +00:00
vm - Don't lock the vnode interlock in vm_object_set_writeable_dirty() if 2005-03-17 12:03:42 +00:00
Makefile When building cscopnamefile, default architecture to ${MACHINE}, not i386. 2005-03-08 00:09:41 +00:00