diff options
author | jhb <jhb@FreeBSD.org> | 2009-06-25 18:35:19 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2009-06-25 18:35:19 +0000 |
commit | e059cd9143faa34a2e3352165b9bc573d50b7081 (patch) | |
tree | d13c21efb7b82e27866eba78cecd636a5d5f010b /sys/kern/kern_intr.c | |
parent | bd6fb9267954dd714923a1e39ff75be975a875dc (diff) | |
download | FreeBSD-src-e059cd9143faa34a2e3352165b9bc573d50b7081.zip FreeBSD-src-e059cd9143faa34a2e3352165b9bc573d50b7081.tar.gz |
Return errors from intr_event_bind() to the caller of intr_set_affinity().
Specifically, if a non-root user attempts to bind an interrupt the request
will now report failure with EPERM rather than silently failing with a
successful return code.
MFC after: 1 week
Diffstat (limited to 'sys/kern/kern_intr.c')
-rw-r--r-- | sys/kern/kern_intr.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/kern/kern_intr.c b/sys/kern/kern_intr.c index 1893f48..56761ba 100644 --- a/sys/kern/kern_intr.c +++ b/sys/kern/kern_intr.c @@ -373,8 +373,7 @@ intr_setaffinity(int irq, void *m) ie = intr_lookup(irq); if (ie == NULL) return (ESRCH); - intr_event_bind(ie, cpu); - return (0); + return (intr_event_bind(ie, cpu)); } int |