X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=net%2Fbridge%2Fbr_notify.c;h=f8fb49e34764e86cc8884c32b2ee924d512b3365;hb=c7b5ebbddf7bcd3651947760f423e3783bbe6573;hp=d0702fbcb21de7373e97402b26388d772e7ac0b4;hpb=a2c21200f1c81b08cb55e417b68150bba439b646;p=linux-2.6.git diff --git a/net/bridge/br_notify.c b/net/bridge/br_notify.c index d0702fbcb..f8fb49e34 100644 --- a/net/bridge/br_notify.c +++ b/net/bridge/br_notify.c @@ -76,10 +76,12 @@ static int br_device_event(struct notifier_block *unused, unsigned long event, v break; case NETDEV_UNREGISTER: + spin_unlock_bh(&br->lock); br_del_if(br, dev); - break; + goto done; } spin_unlock_bh(&br->lock); + done: return NOTIFY_DONE; }