[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id: <20190611.115440.853101091654871086.davem@davemloft.net>
Date: Tue, 11 Jun 2019 11:54:40 -0700 (PDT)
From: David Miller <davem@...emloft.net>
To: ap420073@...il.com
Cc: pshelar@....org, netdev@...r.kernel.org, dev@...nvswitch.org
Subject: Re: [PATCH net] net: openvswitch: do not free vport if
register_netdevice() is failed.
From: Taehee Yoo <ap420073@...il.com>
Date: Sun, 9 Jun 2019 23:26:21 +0900
> In order to create an internal vport, internal_dev_create() is used and
> that calls register_netdevice() internally.
> If register_netdevice() fails, it calls dev->priv_destructor() to free
> private data of netdev. actually, a private data of this is a vport.
>
> Hence internal_dev_create() should not free and use a vport after failure
> of register_netdevice().
>
> Test command
> ovs-dpctl add-dp bonding_masters
...
> Fixes: cf124db566e6 ("net: Fix inconsistent teardown and release of private netdev state.")
> Signed-off-by: Taehee Yoo <ap420073@...il.com>
Applied, thank you.
Powered by blists - more mailing lists