Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 10 Apr 2012 06:52:40 +0000 (UTC)
From:      Gleb Smirnoff <glebius@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r234087 - head/sys/netinet
Message-ID:  <201204100652.q3A6qeCU008224@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: glebius
Date: Tue Apr 10 06:52:39 2012
New Revision: 234087
URL: http://svn.freebsd.org/changeset/base/234087

Log:
  M_DONTWAIT is a flag from historical mbuf(9)
  allocator, not malloc(9) or uma(9) flag.

Modified:
  head/sys/netinet/in.c

Modified: head/sys/netinet/in.c
==============================================================================
--- head/sys/netinet/in.c	Tue Apr 10 06:52:21 2012	(r234086)
+++ head/sys/netinet/in.c	Tue Apr 10 06:52:39 2012	(r234087)
@@ -1279,7 +1279,7 @@ in_lltable_new(const struct sockaddr *l3
 {
 	struct in_llentry *lle;
 
-	lle = malloc(sizeof(struct in_llentry), M_LLTABLE, M_DONTWAIT | M_ZERO);
+	lle = malloc(sizeof(struct in_llentry), M_LLTABLE, M_NOWAIT | M_ZERO);
 	if (lle == NULL)		/* NB: caller generates msg */
 		return NULL;
 



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