PERFORCE change 101270 for review

Paolo Pisati piso at FreeBSD.org
Tue Jul 11 12:48:02 UTC 2006


http://perforce.freebsd.org/chv.cgi?CH=101270

Change 101270 by piso at piso_newluxor on 2006/07/11 12:47:59

	Unbreak FAST handlers: with filters in place, it's legal
	to have handler == NULL, while it's not correct to have
	both filter == NULL && handler == NULL.
	
	This fixes all the problems i had with my laptop, and now 
	i've 2 boxes (my laptop and my desktop) happily running this 
	branch with no problem: the basic infrastructure is ready now
	to accept filter+ithread drivers.

Affected files ...

.. //depot/projects/soc2006/intr_filter/kern/kern_intr.c#7 edit

Differences ...

==== //depot/projects/soc2006/intr_filter/kern/kern_intr.c#7 (text+ko) ====

@@ -329,7 +329,7 @@
 	struct intr_handler *ih, *temp_ih;
 	struct intr_thread *it;
 
-	if (ie == NULL || name == NULL || handler == NULL)
+	if (ie == NULL || name == NULL || (handler == NULL && filter == NULL))
 		return (EINVAL);
 
 	/* Allocate and populate an interrupt handler structure. */


More information about the p4-projects mailing list