freebsd-nq/share
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
..
colldef
dict
doc The BIND 9.8.2 tarball was re-rolled to remove 9.8.1 release notes. 2012-04-12 01:53:33 +00:00
dtrace Remove copy/pasteo in the copyright notice. 2012-07-21 07:14:52 +00:00
examples Minor style(9) improvement 2012-08-07 13:11:47 +00:00
i18n Add the BSD-licensed Citrus iconv to the base system with default off 2011-02-25 00:04:39 +00:00
info
man Streamline use of cdevpriv and correct some corner cases. 2012-08-15 16:19:39 +00:00
me
misc - Add myself to calendar.freebsd 2012-08-01 17:48:38 +00:00
mk Merging of projects/armv6, part 3 2012-08-15 03:21:56 +00:00
mklocale
monetdef Fix the number of decimal digits used for Swiss Francs (0 -> 2). Found by the libc++ test suite. If there is some locale test suite somewhere, it might be worth running it... 2011-11-12 14:39:20 +00:00
msgdef
numericdef
security
sendmail
skel Copy recent changes from etc/root/dot.cshrc that make the defaults more 2012-04-29 22:29:48 +00:00
snmp
syscons Add a description of the Spanish Dvorak keymap added in r235251 2012-07-07 17:35:34 +00:00
tabset
termcap General mdoc(7) and typo fixes. 2012-05-12 15:08:22 +00:00
timedef Partial fix for PR 91106. Correct the short weekday names. Done according to this poll https://bugzilla.redhat.com/show_bug.cgi?id=242296. This will not close the bug fully yet, as the month names are still not correctly in Genitive. More research on this topic will be done, as I'm suspecting a bug in the libc locale functions picking the month name from the wrong group. 2011-02-27 21:32:25 +00:00
zoneinfo
Makefile Add support for our own DTrace scripts and those from the DTraceToolkit 2012-05-18 16:40:15 +00:00
Makefile.inc