[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <000201d2c332$0c73c320$255b4960$@vip.163.com>
Date: Tue, 2 May 2017 18:51:24 +0800
From: "Gao Feng" <gfree.wind@....163.com>
To: "'David Ahern'" <dsa@...ulusnetworks.com>, <davem@...emloft.net>,
<jarod@...hat.com>, <lucien.xin@...il.com>,
<stephen@...workplumber.org>, <netdev@...r.kernel.org>
Subject: RE: [PATCH net v3] driver: veth: Fix one possbile memleak when fail to register_netdevice
> From: David Ahern [mailto:dsa@...ulusnetworks.com]
> Sent: Monday, May 1, 2017 11:08 PM
> On 4/28/17 9:51 PM, gfree.wind@...mail.com wrote:
> > diff --git a/drivers/net/veth.c b/drivers/net/veth.c index
> > 8c39d6d..418376a 100644
> > --- a/drivers/net/veth.c
> > +++ b/drivers/net/veth.c
> > @@ -224,9 +224,21 @@ static int veth_dev_init(struct net_device *dev)
> > return 0;
> > }
> >
> > -static void veth_dev_free(struct net_device *dev)
> > +static void veth_destructor_free(struct net_device *dev)
>
> _destructor in the name is confusing since veth_dev_free is the
> dev->destructor. Perhaps that should be veth_free_stats.
Because I want to emphasize it should be invoked in the destructor.
What's your opinion ?
[...]
> Functionally, it looks good to me.
>
> Acked-by: David Ahern <dsa@...ulusnetworks.com>
Thanks David.
I have sent the v4 patches with a series according to David's advice.
BTW, because I send multiple patches too fast today, the email server blocks
my account.
So I have to reply you with a different email account. Sorry.
Regards
Feng
Powered by blists - more mailing lists