NetBSD/sys/dev
chs e07f0b9362 eliminate uvm_useracc() in favor of checking the return value of
copyin() or copyout().

uvm_useracc() tells us whether the mapping permissions allow access to
the desired part of an address space, and many callers assume that
this is the same as knowing whether an attempt to access that part of
the address space will succeed.  however, access to user space can
fail for reasons other than insufficient permission, most notably that
paging in any non-resident data can fail due to i/o errors.  most of
the callers of uvm_useracc() make the above incorrect assumption.  the
rest are all misguided optimizations, which optimize for the case
where an operation will fail.  we'd rather optimize for operations
succeeding, in which case we should just attempt the access and handle
failures due to insufficient permissions the same way we handle i/o
errors.  since there appear to be no good uses of uvm_useracc(), we'll
just remove it.
2003-11-13 03:09:28 +00:00
..
acpi - fix deadlocks due to using lock_status() from interrupt context. 2003-11-12 13:59:23 +00:00
apm
arcbios
ata Replace home-grown locks with lockmgr(). 2003-11-07 04:10:56 +00:00
bi Work around gcc 2.95.3's inability to detect that "ret" is initialized. 2003-11-06 00:25:50 +00:00
bluetooth
cardbus Fix some typos. From Tom Cosgrove via jmc@openbsd. 2003-11-02 09:52:33 +00:00
dec Add cnmagic support to the DZ driver. Pmax should also use cnmagic instead 2003-10-18 12:10:53 +00:00
dmover Go ahead and define xor function names up to xor16. 2003-11-07 22:04:59 +00:00
ebus
eisa Fix some typos. From Tom Cosgrove via jmc@openbsd. 2003-11-02 09:52:33 +00:00
gpib boundary, not boundry. Inspired by Tom Cosgrove. 2003-11-02 10:31:06 +00:00
hpc eliminate uvm_useracc() in favor of checking the return value of 2003-11-13 03:09:28 +00:00
i2c Remove bogus initializer, and instead fix an =/== typo. 2003-10-29 00:34:58 +00:00
i2o Fix some typos. From Tom Cosgrove via jmc@openbsd. 2003-11-02 09:52:33 +00:00
ic eliminate uvm_useracc() in favor of checking the return value of 2003-11-13 03:09:28 +00:00
ieee1394 Fix unitialized var warning, add a comment to indicate that it's use 2003-10-26 21:03:34 +00:00
ir Remove break after return. 2003-10-21 06:22:46 +00:00
isa Replace home-grown locks with lockmgr(). 2003-11-07 04:10:56 +00:00
isapnp Spell address with two d's. Inspired by similar changes in OpenBSD, 2003-11-10 08:51:51 +00:00
marvell boundary, not boundry. Inspired by Tom Cosgrove. 2003-11-02 10:31:06 +00:00
mca Spell address with two d's. Inspired by similar changes in OpenBSD, 2003-11-10 08:51:51 +00:00
microcode Use ${HOST_SH} instead of `sh'. 2003-10-26 07:25:33 +00:00
mii Fix some typos. From Tom Cosgrove via jmc@openbsd. 2003-11-02 11:07:44 +00:00
mscp
mvme Fix another instance where `offset' might have been used uninitialized, 2003-11-09 14:26:15 +00:00
news
ofisa
ofw Typo in comment. From OpenBSD. 2003-10-22 09:04:39 +00:00
pci eliminate uvm_useracc() in favor of checking the return value of 2003-11-13 03:09:28 +00:00
pckbc Typo in comment. From OpenBSD. 2003-10-22 09:04:39 +00:00
pcmcia Update URL; s/Linix/Linux/. From Jared Yanovich, forwarded by jmc@openbsd. 2003-11-10 08:55:41 +00:00
podulebus Following Matt Thomas's request, rename ata attribute to ata_hl, and 2003-10-08 20:57:59 +00:00
qbus
raidframe Remove some assigned-to but otherwise unused variables. 2003-10-30 01:58:17 +00:00
rasops For the rasops-drawn cursor the fg/bg indices are bit inverted, so 2003-11-08 22:49:28 +00:00
rcons
sbus eliminate uvm_useracc() in favor of checking the return value of 2003-11-13 03:09:28 +00:00
scsipi Spell address with two d's. Inspired by similar changes in OpenBSD, 2003-11-10 08:51:51 +00:00
smbus Fix a couple of tyops. 2003-10-25 15:00:38 +00:00
std Fix unitialized variable use. 2003-10-26 20:53:09 +00:00
sun eliminate uvm_useracc() in favor of checking the return value of 2003-11-13 03:09:28 +00:00
sysmon Remove some assigned-to but otherwise unused variables. 2003-10-30 01:58:17 +00:00
tc eliminate uvm_useracc() in favor of checking the return value of 2003-11-13 03:09:28 +00:00
usb Don't free non-malloced memory. From mlang@delysid.org 2003-11-12 11:29:12 +00:00
vinum NULL -> 0 2003-10-25 16:15:07 +00:00
vme Elminate GCC uninitialized variable warning. 2003-10-28 18:21:49 +00:00
wscons
wsfont
xmi
auconv.c
auconv.h
audio_if.h
audio.c
audiovar.h
aurateconv.c
ccd.c don't print an uninitialized variable. 2003-10-26 23:42:57 +00:00
ccdvar.h Add user flag CCDF_NOLABEL to prevent the on-disk label from being read 2003-10-17 05:16:15 +00:00
cgd_crypto.c
cgd_crypto.h
cgd.c
cgdvar.h
clock_subr.c
clock_subr.h
clockctl.c
cninit.c Remove declarations of constab[] and *cn_tab. They are in <dev/cons.h>. 2003-10-21 17:03:52 +00:00
cons.c Revert previous change as it breaks the build on a number of ports. 2003-10-18 21:26:22 +00:00
cons.h Introduce null console. This pseudo device acts as a normal console with the 2003-10-17 18:16:42 +00:00
DEVNAMES Add missing NetBSD/hpcsh devices. 2003-10-21 00:33:12 +00:00
dksubr.c
dkvar.h
kttcp.c
kttcpio.h
ld.c
ldvar.h
Makefile Include Vinum. 2003-10-10 06:13:02 +00:00
md_root.c
md.c
md.h
midi_if.h
midi.c Some possible MIDI input byte streams could cause sc->in_msg[] 2003-11-02 11:56:36 +00:00
midisyn.c
midisynvar.h
midivar.h
mm.c
mulaw.c
mulaw.h
nullcons_subr.c Introduce null console. This pseudo device acts as a normal console with the 2003-10-17 20:27:38 +00:00
radio_if.h
radio.c Remove unreachable break after return and goto statements. 2003-10-19 01:44:48 +00:00
radiovar.h
rnd.c
rndpool.c
sequencer.c
sequencervar.h
verified_exec.c
vnd.c Be more careful about validating the user-specified geometry, otherwise 2003-10-19 07:41:19 +00:00
vndvar.h