Re: [PATCH net v2] net: bridge: fix early call to br_stp_change_bridge_id and plug newlink leaks

2017-12-18 Thread David Miller
From: Nikolay Aleksandrov Date: Mon, 18 Dec 2017 17:35:09 +0200 > The early call to br_stp_change_bridge_id in bridge's newlink can cause > a memory leak if an error occurs during the newlink because the fdb > entries are not cleaned up if a different lladdr was

[PATCH net v2] net: bridge: fix early call to br_stp_change_bridge_id and plug newlink leaks

2017-12-18 Thread Nikolay Aleksandrov
The early call to br_stp_change_bridge_id in bridge's newlink can cause a memory leak if an error occurs during the newlink because the fdb entries are not cleaned up if a different lladdr was specified, also another minor issue is that it generates fdb notifications with ifindex = 0. Another