[PPP] pppoe: Fix double-free on skb after transmit failure
When I got rid of the second packet in __pppoe_xmit I created a double-free on the skb because of the goto abort on failure. This patch removes that. Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
5588b40d7c
commit
21d0c83302
|
@ -879,8 +879,7 @@ static int __pppoe_xmit(struct sock *sk, struct sk_buff *skb)
|
||||||
dev->hard_header(skb, dev, ETH_P_PPP_SES,
|
dev->hard_header(skb, dev, ETH_P_PPP_SES,
|
||||||
po->pppoe_pa.remote, NULL, data_len);
|
po->pppoe_pa.remote, NULL, data_len);
|
||||||
|
|
||||||
if (dev_queue_xmit(skb) < 0)
|
dev_queue_xmit(skb);
|
||||||
goto abort;
|
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue