Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 86907
b: refs/heads/master
c: ec9b6ad
h: refs/heads/master
i:
  86905: 87664a4
  86903: f00ce24
v: v3
  • Loading branch information
Jarek Poplawski authored and David S. Miller committed Mar 4, 2008
1 parent 088c1fe commit 05f0512
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 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: c8fff1cf4e4e5e420c929469a09427aa37342928
refs/heads/master: ec9b6add7d81f902f6094e71f595da4a362f3348
7 changes: 6 additions & 1 deletion trunk/drivers/net/pppol2tp.c
Original file line number Diff line number Diff line change
Expand Up @@ -1111,6 +1111,8 @@ static void pppol2tp_tunnel_closeall(struct pppol2tp_tunnel *tunnel)
for (hash = 0; hash < PPPOL2TP_HASH_SIZE; hash++) {
again:
hlist_for_each_safe(walk, tmp, &tunnel->session_hlist[hash]) {
struct sk_buff *skb;

session = hlist_entry(walk, struct pppol2tp_session, hlist);

sk = session->sock;
Expand Down Expand Up @@ -1139,7 +1141,10 @@ static void pppol2tp_tunnel_closeall(struct pppol2tp_tunnel *tunnel)
/* Purge any queued data */
skb_queue_purge(&sk->sk_receive_queue);
skb_queue_purge(&sk->sk_write_queue);
skb_queue_purge(&session->reorder_q);
while ((skb = skb_dequeue(&session->reorder_q))) {
kfree_skb(skb);
sock_put(sk);
}

release_sock(sk);
sock_put(sk);
Expand Down

0 comments on commit 05f0512

Please sign in to comment.