Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 25 Jun 2009 18:35:19 +0000 (UTC)
From:      John Baldwin <jhb@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r194987 - head/sys/kern
Message-ID:  <200906251835.n5PIZJVo060599@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200906251835.n5PIZJVo060599>