From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ding Tianhong Subject: Re: [PATCH net] macvlan: Fix the bug when destroy macvlan dev port Date: Fri, 15 Aug 2014 09:41:50 +0800 Message-ID: <53ED655E.6090309@huawei.com> References: <53EC7D8C.6060908@huawei.com> <1408037910.6804.22.camel@edumazet-glaptop2.roam.corp.google.com> <20140814.143236.466435177296125156.davem@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Cc: , , , To: David Miller , Return-path: Received: from szxga03-in.huawei.com ([119.145.14.66]:15466 "EHLO szxga03-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750869AbaHOBmG (ORCPT ); Thu, 14 Aug 2014 21:42:06 -0400 In-Reply-To: <20140814.143236.466435177296125156.davem@redhat.com> Sender: netdev-owner@vger.kernel.org List-ID: On 2014/8/15 5:32, David Miller wrote: > From: Eric Dumazet > Date: Thu, 14 Aug 2014 10:38:30 -0700 > >> On Thu, 2014-08-14 at 09:58 -0700, Cong Wang wrote: >>> On Thu, Aug 14, 2014 at 2:12 AM, Ding Tianhong wrote: >>>> >>>> To fix this problem, we need to check whether the port is exist when calling >>>> macvlan_port_destroy(), do nothing if the port has been destroyed yet. >>>> >>> >>> As I said, this will make the first call of macvlan_port_destroy() >>> free the port, >>> which was freed by the last one before. >>> >>> Why not just revert your change? It doesn't give any benefit. >>> -- >> >> Yes please, I think patch should be reverted. > > I agree, this should be reverted, I'm going to do it myself. > > Ok, sorry to trouble you. > > . >