Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 2 Aug 2007 19:46:01 GMT
From:      Roman Divacky <rdivacky@FreeBSD.org>
To:        Perforce Change Reviews <perforce@FreeBSD.org>
Subject:   PERFORCE change 124543 for review
Message-ID:  <200708021946.l72Jk1GJ051697@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=124543

Change 124543 by rdivacky@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);
 }



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