Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 8 May 1999 15:32:33 +0200 (MET DST)
From:      Luigi Rizzo <luigi@labinfo.iet.unipi.it>
To:        current@freebsd.org
Subject:   m_get(M_WAIT, ...) _can_ return NULL ?
Message-ID:  <199905081332.PAA07452@labinfo.iet.unipi.it>

next in thread | raw e-mail | index | archive | help
Hi,

thinking about the supposed "fragility" of FreeBSD when mbufs (or
clusters) are not properly dimensioned: i notice that
in various places of the code (and this is, i think, 4.4 heritage),
there are things like

	m = m_get(M_WAIT, ...)
	m->m_len = something.

looking at the code, it seems that m_get() _can_ return a NULL pointer
even if one specifies M_WAIT.

Could this be a potential weakness, and in this case, how shuld we go
and fix it -- by making m_get never return if there is no memory,
or by hunting all such occurrences of the code ?

	cheers
	luigi


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




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