diff options
author | Jarek Poplawski <jarkao2@o2.pl> | 2007-02-13 12:35:26 -0800 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2007-02-13 12:35:26 -0800 |
commit | a10d567c89dfba90dde2e0515e25760fd74cde06 (patch) | |
tree | 86fec06aa1dfe1976d489d3d35c9930405d2caa0 /net/bridge/br_notify.c | |
parent | bbf4a6bc8c4d59a0a9033fc2cb96ec03430c96e4 (diff) | |
download | op-kernel-dev-a10d567c89dfba90dde2e0515e25760fd74cde06.zip op-kernel-dev-a10d567c89dfba90dde2e0515e25760fd74cde06.tar.gz |
[BRIDGE] br_if: Fix oops in port_carrier_check
Signed-off-by: Jarek Poplawski <jarkao2@o2.pl>
Acked-by: Stephen Hemminger <shemminger@linux-foundation.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/bridge/br_notify.c')
-rw-r--r-- | net/bridge/br_notify.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/net/bridge/br_notify.c b/net/bridge/br_notify.c index 8cd3e422..3311c4e3 100644 --- a/net/bridge/br_notify.c +++ b/net/bridge/br_notify.c @@ -56,7 +56,9 @@ static int br_device_event(struct notifier_block *unused, unsigned long event, v case NETDEV_CHANGE: if (br->dev->flags & IFF_UP) - schedule_delayed_work(&p->carrier_check, BR_PORT_DEBOUNCE); + if (schedule_delayed_work(&p->carrier_check, + BR_PORT_DEBOUNCE)) + dev_hold(dev); break; case NETDEV_FEAT_CHANGE: |