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
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to