svn commit: r194987 - head/sys/kern
John Baldwin
jhb at FreeBSD.org
Thu Jun 25 18:35:20 UTC 2009
Author: jhb
Date: Thu Jun 25 18:35:19 2009
New Revision: 194987
URL: http://svn.freebsd.org/changeset/base/194987
Log:
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
Modified:
head/sys/kern/kern_intr.c
Modified: head/sys/kern/kern_intr.c
==============================================================================
--- head/sys/kern/kern_intr.c Thu Jun 25 18:27:08 2009 (r194986)
+++ head/sys/kern/kern_intr.c Thu Jun 25 18:35:19 2009 (r194987)
@@ -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
More information about the svn-src-head
mailing list