Loading net/atm/pppoatm.c +7 −4 Original line number Diff line number Diff line Loading @@ -176,6 +176,7 @@ static void pppoatm_push(struct atm_vcc *atmvcc, struct sk_buff *skb) } ppp_input(&pvcc->chan, skb); return; error: kfree_skb(skb); ppp_input_error(&pvcc->chan, 0); Loading Loading @@ -209,7 +210,8 @@ static int pppoatm_send(struct ppp_channel *chan, struct sk_buff *skb) goto nospace; } kfree_skb(skb); if ((skb = n) == NULL) skb = n; if (skb == NULL) return DROP_PACKET; } else if (!atm_may_send(pvcc->atmvcc, skb->truesize)) goto nospace; Loading Loading @@ -290,7 +292,8 @@ static int pppoatm_assign_vcc(struct atm_vcc *atmvcc, void __user *arg) (be.encaps == e_vc ? 0 : LLC_LEN); pvcc->wakeup_tasklet = tasklet_proto; pvcc->wakeup_tasklet.data = (unsigned long) &pvcc->chan; if ((err = ppp_register_channel(&pvcc->chan)) != 0) { err = ppp_register_channel(&pvcc->chan); if (err != 0) { kfree(pvcc); return err; } Loading Loading
net/atm/pppoatm.c +7 −4 Original line number Diff line number Diff line Loading @@ -176,6 +176,7 @@ static void pppoatm_push(struct atm_vcc *atmvcc, struct sk_buff *skb) } ppp_input(&pvcc->chan, skb); return; error: kfree_skb(skb); ppp_input_error(&pvcc->chan, 0); Loading Loading @@ -209,7 +210,8 @@ static int pppoatm_send(struct ppp_channel *chan, struct sk_buff *skb) goto nospace; } kfree_skb(skb); if ((skb = n) == NULL) skb = n; if (skb == NULL) return DROP_PACKET; } else if (!atm_may_send(pvcc->atmvcc, skb->truesize)) goto nospace; Loading Loading @@ -290,7 +292,8 @@ static int pppoatm_assign_vcc(struct atm_vcc *atmvcc, void __user *arg) (be.encaps == e_vc ? 0 : LLC_LEN); pvcc->wakeup_tasklet = tasklet_proto; pvcc->wakeup_tasklet.data = (unsigned long) &pvcc->chan; if ((err = ppp_register_channel(&pvcc->chan)) != 0) { err = ppp_register_channel(&pvcc->chan); if (err != 0) { kfree(pvcc); return err; } Loading