Subject: CVS commit: src/sys
To: None <source-changes@NetBSD.org>
From: Antti Kantee <pooka@netbsd.org>
List: source-changes
Date: 12/05/2007 17:20:03
Module Name: src
Committed By: pooka
Date: Wed Dec 5 17:20:03 UTC 2007
Modified Files:
src/sys/coda: coda_psdev.c
src/sys/dev: audio.c midi.c rnd.c sequencer.c
src/sys/dev/apm: apm.c
src/sys/dev/hpc/apm: apmdev.c
src/sys/dev/ir: irframe_tty.c
src/sys/dev/isa: satlink.c
src/sys/dev/pci: oboe.c
src/sys/dev/qbus: qd.c
src/sys/dev/sbus: bpp.c
src/sys/dev/scsipi: ch.c
src/sys/dev/sun: event.c
src/sys/dev/sysmon: sysmon_power.c
src/sys/dev/usb: ugen.c uhid.c uirda.c usb.c uscanner.c ustir.c
src/sys/dev/wscons: wsevent.c
src/sys/fs/smbfs: smbfs_kq.c
src/sys/kern: kern_event.c subr_log.c sys_pipe.c tty_pty.c
uipc_socket.c
src/sys/miscfs/fifofs: fifo_vnops.c
src/sys/miscfs/genfs: genfs_vnops.c
src/sys/net: bpf.c if_tap.c if_tun.c
src/sys/netisdn: i4b_i4bdrv.c i4b_rbch.c i4b_tel.c
src/sys/nfs: nfs_kq.c
Log Message:
Do not "return 1" from kqfilter for errors. That value is passed
directly to the userland caller and results in a mysterious EPERM.
Instead, return EINVAL or something else sensible depending on the
case.
To generate a diff of this commit:
cvs rdiff -r1.36 -r1.37 src/sys/coda/coda_psdev.c
cvs rdiff -r1.225 -r1.226 src/sys/dev/audio.c
cvs rdiff -r1.57 -r1.58 src/sys/dev/midi.c
cvs rdiff -r1.63 -r1.64 src/sys/dev/rnd.c
cvs rdiff -r1.42 -r1.43 src/sys/dev/sequencer.c
cvs rdiff -r1.14 -r1.15 src/sys/dev/apm/apm.c
cvs rdiff -r1.13 -r1.14 src/sys/dev/hpc/apm/apmdev.c
cvs rdiff -r1.48 -r1.49 src/sys/dev/ir/irframe_tty.c
cvs rdiff -r1.34 -r1.35 src/sys/dev/isa/satlink.c
cvs rdiff -r1.27 -r1.28 src/sys/dev/pci/oboe.c
cvs rdiff -r1.40 -r1.41 src/sys/dev/qbus/qd.c
cvs rdiff -r1.30 -r1.31 src/sys/dev/sbus/bpp.c
cvs rdiff -r1.77 -r1.78 src/sys/dev/scsipi/ch.c
cvs rdiff -r1.20 -r1.21 src/sys/dev/sun/event.c
cvs rdiff -r1.31 -r1.32 src/sys/dev/sysmon/sysmon_power.c
cvs rdiff -r1.93 -r1.94 src/sys/dev/usb/ugen.c
cvs rdiff -r1.76 -r1.77 src/sys/dev/usb/uhid.c
cvs rdiff -r1.26 -r1.27 src/sys/dev/usb/uirda.c
cvs rdiff -r1.102 -r1.103 src/sys/dev/usb/usb.c
cvs rdiff -r1.58 -r1.59 src/sys/dev/usb/uscanner.c
cvs rdiff -r1.20 -r1.21 src/sys/dev/usb/ustir.c
cvs rdiff -r1.23 -r1.24 src/sys/dev/wscons/wsevent.c
cvs rdiff -r1.16 -r1.17 src/sys/fs/smbfs/smbfs_kq.c
cvs rdiff -r1.42 -r1.43 src/sys/kern/kern_event.c
cvs rdiff -r1.43 -r1.44 src/sys/kern/subr_log.c
cvs rdiff -r1.87 -r1.88 src/sys/kern/sys_pipe.c
cvs rdiff -r1.104 -r1.105 src/sys/kern/tty_pty.c
cvs rdiff -r1.148 -r1.149 src/sys/kern/uipc_socket.c
cvs rdiff -r1.58 -r1.59 src/sys/miscfs/fifofs/fifo_vnops.c
cvs rdiff -r1.158 -r1.159 src/sys/miscfs/genfs/genfs_vnops.c
cvs rdiff -r1.130 -r1.131 src/sys/net/bpf.c
cvs rdiff -r1.34 -r1.35 src/sys/net/if_tap.c
cvs rdiff -r1.99 -r1.100 src/sys/net/if_tun.c
cvs rdiff -r1.31 -r1.32 src/sys/netisdn/i4b_i4bdrv.c
cvs rdiff -r1.21 -r1.22 src/sys/netisdn/i4b_rbch.c
cvs rdiff -r1.20 -r1.21 src/sys/netisdn/i4b_tel.c
cvs rdiff -r1.16 -r1.17 src/sys/nfs/nfs_kq.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.