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
This commit is contained in:
John Baldwin 2009-06-25 18:35:19 +00:00
parent a84a56f28b
commit 9bd55acf5e
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=194987

View file

@ -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