PERFORCE change 85618 for review
Todd Miller
millert at FreeBSD.org
Thu Oct 20 20:37:57 GMT 2005
http://perforce.freebsd.org/chv.cgi?CH=85618
Change 85618 by millert at 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);
}
To Unsubscribe: send mail to majordomo at trustedbsd.org
with "unsubscribe trustedbsd-cvs" in the body of the message
More information about the trustedbsd-cvs
mailing list