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 7503159 commit e67a8e3Copy full SHA for e67a8e3
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);
@@ -287,9 +285,13 @@ static int rpl_input(struct sk_buff *skb)
287
285
288
286
err = skb_cow_head(skb, LL_RESERVED_SPACE(dst->dev));
289
if (unlikely(err))
290
291
292
return dst_input(skb);
+
+drop:
293
+ kfree_skb(skb);
294
+ return err;
295
}
296
297
static int nla_put_rpl_srh(struct sk_buff *skb, int attrtype,
0 commit comments