Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 277928
b: refs/heads/master
c: 3b82936
h: refs/heads/master
v: v3
  • Loading branch information
Jorge Boncompte [DTI2] authored and David S. Miller committed Nov 22, 2011
1 parent f8ab73c commit 23bd08d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 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: ada22aa563c5932242d9684e01a3f51b7ea08801
refs/heads/master: 3b829366cc6d0adeb4df2c2d917926f6b41c573d
17 changes: 10 additions & 7 deletions trunk/net/atm/clip.c
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,13 @@ static void clip_push(struct atm_vcc *vcc, struct sk_buff *skb)
struct clip_vcc *clip_vcc = CLIP_VCC(vcc);

pr_debug("\n");

if (!clip_devs) {
atm_return(vcc, skb->truesize);
kfree_skb(skb);
return;
}

if (!skb) {
pr_debug("removing VCC %p\n", clip_vcc);
if (clip_vcc->entry)
Expand Down Expand Up @@ -480,13 +487,9 @@ static int clip_mkip(struct atm_vcc *vcc, int timeout)
spin_unlock_irqrestore(&rq->lock, flags);

/* re-process everything received between connection setup and MKIP */
skb_queue_walk_safe(&queue, skb, tmp) {
if (!clip_devs) {
atm_return(vcc, skb->truesize);
kfree_skb(skb);
} else
clip_push(vcc, skb);
}
skb_queue_walk_safe(&queue, skb, tmp)
clip_push(vcc, skb);

return 0;
}

Expand Down

0 comments on commit 23bd08d

Please sign in to comment.