mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 03:36:19 +00:00
bridge: bad error handling when adding invalid ether address
This fixes an crash when empty bond device is added to a bridge. If an interface with invalid ethernet address (all zero) is added to a bridge, then bridge code detects it when setting up the forward databas entry. But the error unwind is broken, the bridge port object can get freed twice: once when ref count went to zeo, and once by kfree. Since object is never really accessible, just free it. Signed-off-by: Stephen Hemminger <shemminger@vyatta.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
c80dd2da73
commit
cda6d377ec
1 changed files with 0 additions and 1 deletions
|
@ -426,7 +426,6 @@ err2:
|
|||
err1:
|
||||
kobject_del(&p->kobj);
|
||||
err0:
|
||||
kobject_put(&p->kobj);
|
||||
dev_set_promiscuity(dev, -1);
|
||||
put_back:
|
||||
dev_put(dev);
|
||||
|
|
Loading…
Reference in a new issue