We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b9c7ac4 commit 2c84b0aCopy full SHA for 2c84b0a
net/ipv6/rpl_iptunnel.c
@@ -263,10 +263,8 @@ static int rpl_input(struct sk_buff *skb)
263
rlwt = rpl_lwt_lwtunnel(orig_dst->lwtstate);
264
265
err = rpl_do_srh(skb, rlwt);
266
- if (unlikely(err)) {
267
- kfree_skb(skb);
268
- return err;
269
- }
+ if (unlikely(err))
+ goto drop;
270
271
local_bh_disable();
272
dst = dst_cache_get(&rlwt->cache);
@@ -286,9 +284,13 @@ static int rpl_input(struct sk_buff *skb)
286
284
287
285
err = skb_cow_head(skb, LL_RESERVED_SPACE(dst->dev));
288
if (unlikely(err))
289
290
291
return dst_input(skb);
+
+drop:
292
+ kfree_skb(skb);
293
+ return err;
294
}
295
296
static int nla_put_rpl_srh(struct sk_buff *skb, int attrtype,
0 commit comments