svn commit: r333911 - head/sys/netinet

Matthew Macy mmacy at freebsd.org
Mon May 21 20:49:26 UTC 2018


On Mon, May 21, 2018 at 6:15 AM, Jonathan Looney <jonlooney at gmail.com> wrote:
> On Sat, May 19, 2018 at 10:27 PM, Matt Macy <mmacy at freebsd.org> wrote:
>>
>> +       il = malloc(sizeof(struct in_pcblist) + n * sizeof(struct inpcb
>> *), M_TEMP, M_WAITOK|M_ZERO);
>> +       inp_list = il->il_inp_list;
>
>
> Why does this need M_ZERO?

It allows me to assert that it hasn't already been passed to
epoch_call. However, it doesn't make sense to pass it on
non-INVARIANTS builds.

-M


More information about the svn-src-head mailing list