freebsd-nq/sys
Hans Petter Selasky 07da61a6cc Streamline use of cdevpriv and correct some corner cases.
1) It is not useful to call "devfs_clear_cdevpriv()" from
"d_close" callbacks, hence for example read, write, ioctl and
so on might be sleeping at the time of "d_close" being called
and then then freed private data can still be accessed.
Examples: dtrace, linux_compat, ksyms (all fixed by this patch)

2) In sys/dev/drm* there are some cases in which memory will
be freed twice, if open fails, first by code in the open
routine, secondly by the cdevpriv destructor. Move registration
of the cdevpriv to the end of the drm open routines.

3) devfs_clear_cdevpriv() is not called if the "d_open" callback
registered cdevpriv data and the "d_open" callback function
returned an error. Fix this.

Discussed with:	phk
MFC after:	2 weeks
2012-08-15 16:19:39 +00:00
..
amd64 As discussed on -current, remove the hardcoded default maxswzone. 2012-08-14 17:01:21 +00:00
arm Unbreak ATMEL kernel build 2012-08-15 08:34:31 +00:00
boot Some BIOSes return incorrect number of sectors, make checks less 2012-08-15 12:01:13 +00:00
bsm
cam 1. Remove SEN support. I doubt there are any working examples 2012-08-12 17:01:07 +00:00
cddl Streamline use of cdevpriv and correct some corner cases. 2012-08-15 16:19:39 +00:00
compat Regenerate. 2012-08-15 15:18:20 +00:00
conf Merging of projects/armv6, part 5 2012-08-15 04:03:55 +00:00
contrib Update to latest git version of dtc to get new dtsv2 support, 2012-07-24 16:29:33 +00:00
crypto
ddb Update the ddb and gdb backends for the new 'trace_thread' hook. 2012-04-12 21:34:58 +00:00
dev Streamline use of cdevpriv and correct some corner cases. 2012-08-15 16:19:39 +00:00
fs Streamline use of cdevpriv and correct some corner cases. 2012-08-15 16:19:39 +00:00
gdb Update the ddb and gdb backends for the new 'trace_thread' hook. 2012-04-12 21:34:58 +00:00
geom Always initialize sc_ekey, because as of r238116 it is always used. 2012-08-10 18:43:29 +00:00
gnu/fs Just like the other file systems found in /sys/fs, g_vfs_open() 2012-08-01 23:05:57 +00:00
i386 As discussed on -current, remove the hardcoded default maxswzone. 2012-08-14 17:01:21 +00:00
ia64 After the PHYS_TO_VM_PAGE() function was de-inlined, the main reason 2012-08-05 14:11:42 +00:00
isa
kern Add a sysctl kern.pid_max, which limits the maximum pid the system is 2012-08-15 15:56:21 +00:00
kgssapi
libkern Fix unloading of libiconv module. 2012-06-11 17:42:39 +00:00
mips Port the new PV entry allocator from amd64/i386. This allocator has two 2012-08-13 17:38:38 +00:00
modules Merging of projects/armv6, part 10 2012-08-15 06:31:32 +00:00
net After the PHYS_TO_VM_PAGE() function was de-inlined, the main reason 2012-08-05 14:11:42 +00:00
net80211 Fix an incorrect comment. 2012-08-08 17:16:06 +00:00
netatalk Fix typos 2012-02-28 15:07:05 +00:00
netgraph Remove duplicate check. 2012-08-03 12:55:31 +00:00
netinet s/lenght/length/ in comments 2012-08-07 07:52:25 +00:00
netinet6 Fix races between in_lltable_prefix_free(), lla_lookup(), 2012-08-02 13:57:49 +00:00
netipsec Fix a bug introduced in r221129 that leads to a panic wen using bundled 2012-07-22 17:46:05 +00:00
netipx
netnatm
netncp Add characters mapping for codepages used in Germany. 2012-06-01 03:59:08 +00:00
netsmb Change a duplicated check to clarify that we really want to set a 2012-07-10 21:02:59 +00:00
nfs Add multi-FIB IPv6 support to the core network stack supplementing 2012-02-03 13:08:44 +00:00
nfsclient Do not leave invalid pages in the object after the short read for a 2012-08-14 11:45:47 +00:00
nfsserver
nlm Add a sysctl kern.pid_max, which limits the maximum pid the system is 2012-08-15 15:56:21 +00:00
ofed Streamline use of cdevpriv and correct some corner cases. 2012-08-15 16:19:39 +00:00
opencrypto
pc98 Partially revert r217515 so that the mem_range_softc variable is always 2012-07-09 20:42:08 +00:00
pci intpm: add ATI IXP400 pci id 2012-04-16 10:33:46 +00:00
powerpc Add backlight support for nVidia-based PowerBooks/iBooks/iMacs. 2012-08-04 03:05:01 +00:00
rpc
security Check vplabel for NULL before dereferencing it. Fixes a panic 2012-05-03 15:51:34 +00:00
sparc64 Merge r236494 from x86: 2012-08-05 22:03:13 +00:00
sys Add a sysctl kern.pid_max, which limits the maximum pid the system is 2012-08-15 15:56:21 +00:00
teken
tools Make vnode_if.awk parse vnode operations with underscores, like VOP_FOO_BAR. 2012-02-21 19:35:59 +00:00
ufs After the PHYS_TO_VM_PAGE() function was de-inlined, the main reason 2012-08-05 14:11:42 +00:00
vm For old mmap syscall, when executing on amd64 or ia64, enforce the 2012-08-14 12:11:48 +00:00
x86 During TSC synchronization test, use rdtsc() rather than rdtsc32(), to 2012-08-07 23:16:11 +00:00
xdr
xen blkif interface comment cleanups. No functional changes 2012-02-29 17:47:01 +00:00
Makefile Add sys/ofed to the 'make cscope' target. 2012-03-20 18:05:15 +00:00