[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAEP_g=9j-JwN6Ufc23jczaP4kGYoLi-5fL_pmqi1BAeV=N_heg@mail.gmail.com>
Date: Mon, 21 Sep 2015 18:11:34 -0700
From: Jesse Gross <jesse@...ira.com>
To: David Miller <davem@...emloft.net>
Cc: netdev <netdev@...r.kernel.org>
Subject: Re: [PATCH net] openvswitch: Zero flows on allocation.
On Sun, Sep 20, 2015 at 11:24 PM, David Miller <davem@...emloft.net> wrote:
> From: Jesse Gross <jesse@...ira.com>
> Date: Fri, 18 Sep 2015 19:06:14 -0700
>
>> @@ -80,7 +80,7 @@ struct sw_flow *ovs_flow_alloc(void)
>> struct flow_stats *stats;
>> int node;
>>
>> - flow = kmem_cache_alloc(flow_cache, GFP_KERNEL);
>> + flow = kmem_cache_alloc(flow_cache, GFP_KERNEL | __GFP_ZERO);
>> if (!flow)
>
> Like Eric, I prefer that you use kmem_cache_zalloc() to fix
> this.
Sure, I'll make both changes and send out a new patch in a bit.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists