PERFORCE change 124543 for review

Roman Divacky rdivacky at FreeBSD.org
Thu Aug 2 12:46:02 PDT 2007


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

Change 124543 by rdivacky at rdivacky_witten on 2007/08/02 19:45:00

	sched_getaffinity() returns number of bytes written out. As FreeBSD is
	obviously only support cpumask_t number of CPUs this should be ok.

Affected files ...

.. //depot/projects/soc2007/rdivacky/linux_fixes/sys/compat/linux/linux_misc.c#4 edit

Differences ...

==== //depot/projects/soc2007/rdivacky/linux_fixes/sys/compat/linux/linux_misc.c#4 (text+ko) ====

@@ -1726,5 +1726,9 @@
 		return (EINVAL);
 
 	error = copyout(&i, args->user_mask_ptr, sizeof(cpumask_t));
-	return (error);
+	if (error)
+		return (EFAULT);
+
+	td->td_retval[0] = sizeof(cpumask_t);
+	return (0);
 }


More information about the p4-projects mailing list