Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 125a12cc authored by Stephen Hemminger's avatar Stephen Hemminger Committed by David S. Miller
Browse files

[BRIDGE]: generate kobject remove event



The earlier round of kobject/sysfs changes to bridge caused
it not to generate a uevent on removal. Don't think any application
cares (not sure about Xen) but since it generates add uevent
it should generate remove as well.

Signed-off-by: default avatarStephen Hemminger <shemmigner@osdl.org>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent d32439c0
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -169,6 +169,7 @@ static void del_nbp(struct net_bridge_port *p)

	rcu_assign_pointer(dev->br_port, NULL);

	kobject_uevent(&p->kobj, KOBJ_REMOVE);
	kobject_del(&p->kobj);

	call_rcu(&p->rcu, destroy_nbp_rcu);