X-Git-Url: http://git.monstr.eu/?a=blobdiff_plain;f=net%2Fsched%2Fact_mpls.c;h=d1486ea496a2cacaa6c141f12c13b3210743ecb7;hb=fe75a21824e78405b8d812421974524092250c63;hp=5c7456e5b5cf04643c5421a05467092c75398f44;hpb=127a7a95df41731632c7348960908751f7f9d049;p=linux-2.6-microblaze.git diff --git a/net/sched/act_mpls.c b/net/sched/act_mpls.c index 5c7456e5b5cf..d1486ea496a2 100644 --- a/net/sched/act_mpls.c +++ b/net/sched/act_mpls.c @@ -105,6 +105,9 @@ static int tcf_mpls_act(struct sk_buff *skb, const struct tc_action *a, goto drop; break; case TCA_MPLS_ACT_MODIFY: + if (!pskb_may_pull(skb, + skb_network_offset(skb) + MPLS_HLEN)) + goto drop; new_lse = tcf_mpls_get_lse(mpls_hdr(skb), p, false); if (skb_mpls_update_lse(skb, new_lse)) goto drop;