Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 20 Oct 2005 20:37:57 GMT
From:      Todd Miller <millert@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 85618 for review
Message-ID:  <200510202037.j9KKbvGZ024432@repoman.freebsd.org>

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

Change 85618 by millert@millert_ibook on 2005/10/20 20:37:16

	Honor M_NOWAIT in sebsd_malloc() by calling kalloc_noblock()
	instead of kalloc().

Affected files ...

.. //depot/projects/trustedbsd/sedarwin7/src/sedarwin/sedarwin/sebsd.c#10 edit

Differences ...

==== //depot/projects/trustedbsd/sedarwin7/src/sedarwin/sedarwin/sebsd.c#10 (text+ko) ====

@@ -81,8 +81,9 @@
 {
 	void *v;
 
-	v = (void *)kalloc(size);
-	if (flags & M_ZERO)
+	v = (flags & M_NOWAIT) ?
+	    (void *)kalloc_noblock(size) : (void *)kalloc(size);
+	if (v != NULL && (flags & M_ZERO))
 		bzero(v, size);
 	return (v);
 }



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