Re: svn commit: r333911 - head/sys/netinet

2018-05-21 Thread Matthew Macy
On Mon, May 21, 2018 at 6:15 AM, Jonathan Looney wrote: > On Sat, May 19, 2018 at 10:27 PM, Matt Macy 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 a

Re: svn commit: r333911 - head/sys/netinet

2018-05-21 Thread Jonathan Looney
On Sat, May 19, 2018 at 10:27 PM, Matt Macy 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? Jonathan ___ svn-src-all@fr

svn commit: r333911 - head/sys/netinet

2018-05-19 Thread Matt Macy
Author: mmacy Date: Sun May 20 02:27:58 2018 New Revision: 333911 URL: https://svnweb.freebsd.org/changeset/base/333911 Log: inpcb: consolidate possible deletion in pcblist functions in to epoch deferred context. Modified: head/sys/netinet/ip_divert.c head/sys/netinet/raw_ip.c head/sys/