[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <4FCD9FEB.9060208@cn.fujitsu.com>
Date: Tue, 05 Jun 2012 13:58:03 +0800
From: Gao feng <gaofeng@...fujitsu.com>
To: Steffen Klassert <steffen.klassert@...unet.com>
CC: Eric Dumazet <eric.dumazet@...il.com>, herbert@...dor.apana.org.au,
davem@...emloft.net, netdev@...r.kernel.org,
containers@...ts.linux-foundation.org
Subject: Re: [PATCH net-next 1/2] inetpeer: add namespace support for inetpeer
于 2012年06月05日 13:52, Steffen Klassert 写道:
> On Tue, Jun 05, 2012 at 05:40:19AM +0200, Eric Dumazet wrote:
>> On Tue, 2012-06-05 at 10:23 +0800, Gao feng wrote:
>>>
>>> +static int __net_init inetpeer_net_init(struct net *net)
>>> +{
>>> +
>>> + net->ipv4.peers = kmemdup(&v4_peers,
>>> + sizeof(v4_peers),
>>> + GFP_KERNEL);
>>
>> kzalloc(), and init ->root to peer_avl_empty_rcu
>>
>>> + if (net->ipv4.peers == NULL)
>>> + return -1;
>
> ...and return -ENOMEM if memory allocation fails.
thanks Eric & Steffen
I miss it... I will fix it and send patch v2.
--
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