aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
Diffstat (limited to 'net')
-rw-r--r--net/atm/lec.c6
-rw-r--r--net/atm/pppoatm.c2
-rw-r--r--net/ax25/ax25_out.c2
-rw-r--r--net/ax25/ax25_route.c2
-rw-r--r--net/decnet/dn_neigh.c6
-rw-r--r--net/ipv4/ip_output.c4
-rw-r--r--net/netfilter/ipvs/ip_vs_xmit.c4
7 files changed, 14 insertions, 12 deletions
diff --git a/net/atm/lec.c b/net/atm/lec.c
index a7d172105c99..3da125c384ea 100644
--- a/net/atm/lec.c
+++ b/net/atm/lec.c
@@ -231,9 +231,11 @@ static netdev_tx_t lec_start_xmit(struct sk_buff *skb,
231 if (skb_headroom(skb) < 2) { 231 if (skb_headroom(skb) < 2) {
232 pr_debug("reallocating skb\n"); 232 pr_debug("reallocating skb\n");
233 skb2 = skb_realloc_headroom(skb, LEC_HEADER_LEN); 233 skb2 = skb_realloc_headroom(skb, LEC_HEADER_LEN);
234 kfree_skb(skb); 234 if (unlikely(!skb2)) {
235 if (skb2 == NULL) 235 kfree_skb(skb);
236 return NETDEV_TX_OK; 236 return NETDEV_TX_OK;
237 }
238 consume_skb(skb);
237 skb = skb2; 239 skb = skb2;
238 } 240 }
239 skb_push(skb, 2); 241 skb_push(skb, 2);
diff --git a/net/atm/pppoatm.c b/net/atm/pppoatm.c
index ce1e59fdae7b..226dca989448 100644
--- a/net/atm/pppoatm.c
+++ b/net/atm/pppoatm.c
@@ -283,7 +283,7 @@ static int pppoatm_send(struct ppp_channel *chan, struct sk_buff *skb)
283 kfree_skb(n); 283 kfree_skb(n);
284 goto nospace; 284 goto nospace;
285 } 285 }
286 kfree_skb(skb); 286 consume_skb(skb);
287 skb = n; 287 skb = n;
288 if (skb == NULL) 288 if (skb == NULL)
289 return DROP_PACKET; 289 return DROP_PACKET;
diff --git a/net/ax25/ax25_out.c b/net/ax25/ax25_out.c
index be8a25e0db65..be2acab9be9d 100644
--- a/net/ax25/ax25_out.c
+++ b/net/ax25/ax25_out.c
@@ -350,7 +350,7 @@ void ax25_transmit_buffer(ax25_cb *ax25, struct sk_buff *skb, int type)
350 if (skb->sk != NULL) 350 if (skb->sk != NULL)
351 skb_set_owner_w(skbn, skb->sk); 351 skb_set_owner_w(skbn, skb->sk);
352 352
353 kfree_skb(skb); 353 consume_skb(skb);
354 skb = skbn; 354 skb = skbn;
355 } 355 }
356 356
diff --git a/net/ax25/ax25_route.c b/net/ax25/ax25_route.c
index a65588040b9e..d39097737e38 100644
--- a/net/ax25/ax25_route.c
+++ b/net/ax25/ax25_route.c
@@ -474,7 +474,7 @@ struct sk_buff *ax25_rt_build_path(struct sk_buff *skb, ax25_address *src,
474 if (skb->sk != NULL) 474 if (skb->sk != NULL)
475 skb_set_owner_w(skbn, skb->sk); 475 skb_set_owner_w(skbn, skb->sk);
476 476
477 kfree_skb(skb); 477 consume_skb(skb);
478 478
479 skb = skbn; 479 skb = skbn;
480 } 480 }
diff --git a/net/decnet/dn_neigh.c b/net/decnet/dn_neigh.c
index ac90f658586c..8e9a35b17df4 100644
--- a/net/decnet/dn_neigh.c
+++ b/net/decnet/dn_neigh.c
@@ -240,7 +240,7 @@ static int dn_long_output(struct neighbour *neigh, struct sk_buff *skb)
240 kfree_skb(skb); 240 kfree_skb(skb);
241 return -ENOBUFS; 241 return -ENOBUFS;
242 } 242 }
243 kfree_skb(skb); 243 consume_skb(skb);
244 skb = skb2; 244 skb = skb2;
245 net_info_ratelimited("dn_long_output: Increasing headroom\n"); 245 net_info_ratelimited("dn_long_output: Increasing headroom\n");
246 } 246 }
@@ -283,7 +283,7 @@ static int dn_short_output(struct neighbour *neigh, struct sk_buff *skb)
283 kfree_skb(skb); 283 kfree_skb(skb);
284 return -ENOBUFS; 284 return -ENOBUFS;
285 } 285 }
286 kfree_skb(skb); 286 consume_skb(skb);
287 skb = skb2; 287 skb = skb2;
288 net_info_ratelimited("dn_short_output: Increasing headroom\n"); 288 net_info_ratelimited("dn_short_output: Increasing headroom\n");
289 } 289 }
@@ -322,7 +322,7 @@ static int dn_phase3_output(struct neighbour *neigh, struct sk_buff *skb)
322 kfree_skb(skb); 322 kfree_skb(skb);
323 return -ENOBUFS; 323 return -ENOBUFS;
324 } 324 }
325 kfree_skb(skb); 325 consume_skb(skb);
326 skb = skb2; 326 skb = skb2;
327 net_info_ratelimited("dn_phase3_output: Increasing headroom\n"); 327 net_info_ratelimited("dn_phase3_output: Increasing headroom\n");
328 } 328 }
diff --git a/net/ipv4/ip_output.c b/net/ipv4/ip_output.c
index 451f97c42eb4..b99ca4e154b9 100644
--- a/net/ipv4/ip_output.c
+++ b/net/ipv4/ip_output.c
@@ -200,7 +200,7 @@ static inline int ip_finish_output2(struct sk_buff *skb)
200 } 200 }
201 if (skb->sk) 201 if (skb->sk)
202 skb_set_owner_w(skb2, skb->sk); 202 skb_set_owner_w(skb2, skb->sk);
203 kfree_skb(skb); 203 consume_skb(skb);
204 skb = skb2; 204 skb = skb2;
205 } 205 }
206 206
@@ -709,7 +709,7 @@ slow_path:
709 709
710 IP_INC_STATS(dev_net(dev), IPSTATS_MIB_FRAGCREATES); 710 IP_INC_STATS(dev_net(dev), IPSTATS_MIB_FRAGCREATES);
711 } 711 }
712 kfree_skb(skb); 712 consume_skb(skb);
713 IP_INC_STATS(dev_net(dev), IPSTATS_MIB_FRAGOKS); 713 IP_INC_STATS(dev_net(dev), IPSTATS_MIB_FRAGOKS);
714 return err; 714 return err;
715 715
diff --git a/net/netfilter/ipvs/ip_vs_xmit.c b/net/netfilter/ipvs/ip_vs_xmit.c
index 7fd66dec859d..71d6ecb65926 100644
--- a/net/netfilter/ipvs/ip_vs_xmit.c
+++ b/net/netfilter/ipvs/ip_vs_xmit.c
@@ -823,7 +823,7 @@ ip_vs_tunnel_xmit(struct sk_buff *skb, struct ip_vs_conn *cp,
823 IP_VS_ERR_RL("%s(): no memory\n", __func__); 823 IP_VS_ERR_RL("%s(): no memory\n", __func__);
824 return NF_STOLEN; 824 return NF_STOLEN;
825 } 825 }
826 kfree_skb(skb); 826 consume_skb(skb);
827 skb = new_skb; 827 skb = new_skb;
828 old_iph = ip_hdr(skb); 828 old_iph = ip_hdr(skb);
829 } 829 }
@@ -942,7 +942,7 @@ ip_vs_tunnel_xmit_v6(struct sk_buff *skb, struct ip_vs_conn *cp,
942 IP_VS_ERR_RL("%s(): no memory\n", __func__); 942 IP_VS_ERR_RL("%s(): no memory\n", __func__);
943 return NF_STOLEN; 943 return NF_STOLEN;
944 } 944 }
945 kfree_skb(skb); 945 consume_skb(skb);
946 skb = new_skb; 946 skb = new_skb;
947 old_iph = ipv6_hdr(skb); 947 old_iph = ipv6_hdr(skb);
948 } 948 }