Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 134754
b: refs/heads/master
c: 1d2f8c9
h: refs/heads/master
v: v3
  • Loading branch information
Wei Yongjun authored and David S. Miller committed Feb 27, 2009
1 parent 4d84de1 commit e69e473
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 11 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: 875b48297b8ab2f402680821da47d23bd6bddc55
refs/heads/master: 1d2f8c950745f47f2937742eb886cffee439b754
6 changes: 2 additions & 4 deletions trunk/drivers/net/ppp_async.c
Original file line number Diff line number Diff line change
Expand Up @@ -233,11 +233,9 @@ ppp_asynctty_close(struct tty_struct *tty)
tasklet_kill(&ap->tsk);

ppp_unregister_channel(&ap->chan);
if (ap->rpkt)
kfree_skb(ap->rpkt);
kfree_skb(ap->rpkt);
skb_queue_purge(&ap->rqueue);
if (ap->tpkt)
kfree_skb(ap->tpkt);
kfree_skb(ap->tpkt);
kfree(ap);
}

Expand Down
6 changes: 2 additions & 4 deletions trunk/drivers/net/ppp_generic.c
Original file line number Diff line number Diff line change
Expand Up @@ -1245,8 +1245,7 @@ ppp_send_frame(struct ppp *ppp, struct sk_buff *skb)
return;

drop:
if (skb)
kfree_skb(skb);
kfree_skb(skb);
++ppp->dev->stats.tx_errors;
}

Expand Down Expand Up @@ -2658,8 +2657,7 @@ static void ppp_destroy_interface(struct ppp *ppp)
ppp->active_filter = NULL;
#endif /* CONFIG_PPP_FILTER */

if (ppp->xmit_pending)
kfree_skb(ppp->xmit_pending);
kfree_skb(ppp->xmit_pending);

free_netdev(ppp->dev);
}
Expand Down
3 changes: 1 addition & 2 deletions trunk/drivers/net/ppp_synctty.c
Original file line number Diff line number Diff line change
Expand Up @@ -281,8 +281,7 @@ ppp_sync_close(struct tty_struct *tty)

ppp_unregister_channel(&ap->chan);
skb_queue_purge(&ap->rqueue);
if (ap->tpkt)
kfree_skb(ap->tpkt);
kfree_skb(ap->tpkt);
kfree(ap);
}

Expand Down

0 comments on commit e69e473

Please sign in to comment.