Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 162874
b: refs/heads/master
c: 036d6a6
h: refs/heads/master
v: v3
  • Loading branch information
Jarek Poplawski authored and David S. Miller committed Sep 15, 2009
1 parent 040d0e2 commit 560b11d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d314737ad3bad6b4603b243fd6db572385259690
refs/heads/master: 036d6a673fa0a2e2c5b72a3b1d1b86114c1711c0
15 changes: 10 additions & 5 deletions trunk/net/sched/sch_api.c
Original file line number Diff line number Diff line change
Expand Up @@ -693,13 +693,18 @@ static int qdisc_graft(struct net_device *dev, struct Qdisc *parent,
if (new && i > 0)
atomic_inc(&new->refcnt);

qdisc_destroy(old);
if (!ingress)
qdisc_destroy(old);
}

notify_and_destroy(skb, n, classid, dev->qdisc, new);
if (new && !new->ops->attach)
atomic_inc(&new->refcnt);
dev->qdisc = new ? : &noop_qdisc;
if (!ingress) {
notify_and_destroy(skb, n, classid, dev->qdisc, new);
if (new && !new->ops->attach)
atomic_inc(&new->refcnt);
dev->qdisc = new ? : &noop_qdisc;
} else {
notify_and_destroy(skb, n, classid, old, new);
}

if (dev->flags & IFF_UP)
dev_activate(dev);
Expand Down

0 comments on commit 560b11d

Please sign in to comment.